Abstract: Gravatar (English: Globally Recognized Avatar) is a service for providing avatars for global use. As long as you upload your own avatar on Gravatar's server, you can use it on any other Gravatar-enabled blog, forum, etc.
Gravatar (English: Globally Recognized Avatar) is a service for providing avatars for use worldwide. As long as you upload your own avatar on Gravatar's server, you can use it on any other Gravatar-enabled blog, forum, etc.
When you log in to the WP background, you will find that Gravatar will keep loading, slowing down the website speed. Here are a few ways to solve this problem.
1. The most used domestic mirror is probably Duoshuo, but after testing, it is found that Duoshuo's mirror speed is also very slow!
Add the following code to: website root/wp-content/themes/your template/
functions.php function duoshuo_avatar($avatar) {
$avatar = str_replace(array("www.gravatar.com","0. gravatar.com","1.gravatar.com","2.gravatar.com"),"gravatar.duoshuo.com",$avatar);
return $avatar;
}
add_filter( 'get_avatar', 'duoshuo_avatar', 10 , 3 );
Chaj
uses Yunqi Community APP, comfortable~
WordPress Gravatar slow loading solution in China
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326321561&siteId=291194637
Recommended
Ranking