Javascript (jQuery) performance measurement and best practices (not load time)

前端 未结 2 1882
南方客
南方客 2020-12-01 02:27

I\'ll say right off the bat that this question is NOT about load times; I know about YSlow, the Firebug profiler, and whatever best practices and tools googlage reveals abou

相关标签:
2条回答
  • 2020-12-01 02:47

    JSLitmus looks like something I might try out.

    0 讨论(0)
  • 2020-12-01 02:47

    By using Firebug you can go into console tab, then click the firebug-icon in the upper left corner (called "Firebug options"). Then click on the option "Profile Javascript", after that just do what you want to measure, for example clicking on a javascript button, draging a Jquery dragable object or what ever you want that runs a bit of javascript code. When you have executed the javascript you want to measure go back to the same menu option and once again click "Profile javascript" (so that it gets unchecked). Now the console tab will be filled up with all the actions you previously ran aswell as the time it took to execute each method etc (and total time aswell).

    0 讨论(0)
提交回复
热议问题