After the installation of WordPress, found that the site is very slow to open.
The reason for this is that it's always known because Google fonts can't be loaded and Gravatar avatars can't load.
In the online search, said to be the Google font loading connection modified under, and Gravatar Avatar Load connection modified under.
But modify the source file, the next time the WordPress upgrade will expire.
On the internet to find a WordPress plug-in, solve the Google font loading problems, read the next source, modified the next, but also solve the problem of Gravatar avatar.
The code is as follows:
<?PHPfunctionIzt_cdn_callback ($buffer) { $buffer=Str_replace(' googleapis.com ', ' useso.com ',$buffer); $buffer=Str_replace(Array("Www.gravatar.com", "0.gravatar.com", "1.gravatar.com", "2.gravatar.com"), "secure.gravatar.com",$buffer); return $buffer;}functionIzt_buffer_start () {Ob_start("Izt_cdn_callback");}functionIzt_buffer_end () {Ob_end_flush();} Add_action (' Init ', ' Izt_buffer_start '); Add_action (' Shutdown ', ' izt_buffer_end ');?>
Plugin Download: http://files.cnblogs.com/files/zjfree/googlefontsto360.zip
WordPress Google Fonts and Gravatar avatars do not show problem handling