performance testing - How to check which javascript loads and preforms quicker -


i have written in javascript 2 different ways hover on links , have background of window change color, 1 using event delegation , 1 not.

how check option best performance wise (probably checking in browser developer tools)?

from reading conventions have learned event delegation way go code seems less clear , readable want check if perform better.

in chrome developer tools can use timeline section , create recording of these events , time how long take.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -