In my opinion, the best jQuery performance tip is to minimize your use of jQuery. That is, find a balance between using jQuery and plain ol’ JavaScript, and a good place to start is with “this”. I see it all the time in the jQuery support room, and was guilty of it myself until recently, but many developers use $(this) as their hammer inside callbacks and forget about “this”. The difference is distinct.
Related Submissions:
- 11 Ways to Increase Your jQuery Performance Optimization is something that can help the users of your application achieve actions inside of it much quicker than they may currently be able to....
- Ultra-Chaining with jQuery We were having a discussion, the other day, on the jQuery-dev mailing list concerning style and jQuery code. There was some discussion about how it...
- Setting Opacity and Other Filters in Internet Explorer 8 It was expected that Internet Explorer 8 will support the standard “opacity†property of CSS, but it seems that its developers have decided not drop...
- Event Delegation in jQuery and Performance A look into a few different options for handling events with jQuery and how they perform from a Javascript performance standpoint. .live(), .bind(), .is(), and...
- Intermediate jQuery jQuery is a great JavaScript library, but what about its performance? Is the trade-off between ease of use and a performance hit on the Web...