How to calculate the runtime of each jQuery statement

Now I am fully using jQuery for my project (ajax, validations). But, in my opinion, because of my statements, I assume it takes longer and how can I optimize the time to complete each statement? Say, for example, I saw some posts on Stackoverflow saying this statement:

$("div#mydialog").bind('Dialogclose',function(){});

much slower than this:

$("#mydialog").bind('Dialogclose',function(){});

How can I reach this conclusion? Do I have S Tools for this? How can I optimize instructions in jQuery? What are the best methods to be used in jQuery?

+5
source share
2 answers

jQuery PROFILE plugins.jquery.com, : PROFILE jQuery plug-in

+5

FireQuery FireFox.

http://firequery.binaryage.com/

FireQuery jQuery Lint (https://github.com/jamespadolsey/jQuery-Lint) , jQuery .

JavaScript, FireBug FireFox, IE Developer Console IE8 , Chrome .. , .

+1

All Articles