好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

wordpress后台加载ajax.googleapis.com导致打开速度很慢

wordpress后台加载ajax.googleapis.com导致打开速度很慢的解决方案 打开wordpress后台,发现很卡,通过开发者工具看到是因为加载http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css这个元素导致的. 解决方案: 在functions.php里面添加如下代码: function hc_cdn_callback($buffer) { return str_replace('googleapis.com', 'useso.com', $buffer); } function hc_buffer_start() { ob_start("hc_cdn_callback"); } function izt_buffer_end() { ob_end_flush(); } add_action('init', 'hc_buffer_start'); add_action('shutdown', 'hc_buffer_end'); //开源软件:phpfensi.com

查看更多关于wordpress后台加载ajax.googleapis.com导致打开速度很慢的详细内容...

  阅读:54次