09 Jan 2008 @ 8:53 上午 
 

Firefox+Firebug 找出WordPress速度慢的原因

 

如果你使用Firefox+Wordpress, 那么我建议你下载一个Firebug插件.

下载地址: http://addons.mozine.cn/firefox/531/

想知道原因? 看图说话:

一直以来, 我的WP读取速度感觉很不爽, 10s+

搞的我都不好意思和别人说我的域名,

还曾经打电话问客服加大空间能不能提速, 空间商的网管人不错, 他告诉我容量和速度无关.

54个请求, 用时9.02秒. 偶滴个神呀!

Firebug1

我当然不愿意怀疑WP的效率, 于是找原因 :

imghover.js这个家伙就占据了5.08秒? 而且是因为404错误?

马上找原因, 原来是皮肤里调用的这个文件, 而这个文件其实是不存在的...

imghover.js 用时5.08秒, 404错误!

Firebug2

拉出去枪毙, 情况马上就在有改观 :

少了一个请求, 速度提高五倍! 爽!

53个请求, 用时1.69秒. 神终于显灵了!

Firebug3

Tags Tags:
Categories: 编程
Posted By: colder
Last Edit: 11 May 2008 @ 05 34 下午

E-mailPermalink
 

Responses to this post » (None)

 


Comments are open. Feel free to leave a comment below.


 

Leave A Comment ...

 

 XHTML:
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
\/ More Options ...
Change Theme...
  • Role »
  • Posts »
  • Comments »
Change Theme...
  • VoidVoid (Default)
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLightweight
  • No Child Pages...