当前位置:
  • 首页
  • >
  • TAG
  • >   
  • 精简代码

WordPress如何精简代码

精简代码可以减少网页加载的时间,增加蜘蛛爬取的效率,是SEO必备技能之一,下面小编就wordpress为例编写代码的精简。   将以下代码放到wordpress的functions.php中即可:   /*压缩html代码*/ function wp_compress_html() { function wp_compress_html_main ($buffer) { $initial=strlen($buffer); $buffer=explode("", $buffer); $count=count ($buffer);...

2015-11-26 浏览量(610)