开发者

jquery/ js speed test

I'm using lots of jquery/js in my website. I need to test my jquery perf开发者_StackOverflow社区ormance and improve its performance. Is there any tools to monitor the jquery performance?


Firefox's Firebug has some pretty neat plugins for that:

  • YUI slow
  • Google Page Speed

Even if these plugins are very handy, you could measure the Javascript performance just with Firebug (Firefox) and the Developer Tools (Chrome).


You can use

Well explained here

YSlow

Firebug

To calculate your jQuery time in IE you can use

var startTime = new Date(); 
jQuery.ready(); 
var endTime = new Date(); 
var difference = endTime - startTime; 
alert("document.ready time: " + difference + " milliseconds");

with this code you could get time for jQuery to load

with regards

Wazzy


I can recommend free DynaTrace AJAX Edition.

It is a brilliant performance profiler for IE. It will allow you to see the execution time and number of calls of each javascript method so you can find your bottlenecks easily and quickly.

I've used it to optimize javascript heavy, AJAX-enabled portal (opensocial implementation) and found out ie. nonoptimal jQuery selectors, unnecessary and heavy loops, IE problems with offsetHeight and class attributes.

Here's the full list of features.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜