It’s always worth looking up a function that you may be using heavily to see if there’s a faster way to call it. For example, getting and setting variables using the data() function within jQuery can vary greatly depending on how you call it. Here’s a site that compares the speed differences in various browsers:

http://jsperf.com/jquery-data-vs-jqueryselection-data

Comments are closed.