This is a migrated thread and some comments may be shown as answers.

jQuery Performance Rules

0 Answers 59 Views
Interesting resources
This is a migrated thread and some comments may be shown as answers.
Mostafa Anoosheh
Top achievements
Rank 1
Mostafa Anoosheh asked on 02 May 2009, 06:08 AM

Hello,
Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster. Nowadays, we are increasingly impacting one more major component in performance - CPU utilization. Using jQuery and other frameworks that make selecting nodes and DOM manipulation easy can have adverse affects if you’re not careful and follow some simple practices for reducing the work the browser has to do.

1.Always Descend From an #id
2.Use Tags Before Classes
3.Cache jQuery Objects
4.Harness the Power of Chaining
5.Use Sub-queries
6.Limit Direct DOM Manipulation
7.Leverage Event Delegation (a.k.a. Bubbling)
8.Eliminate Query Waste
9.Defer to $(window).load
10.Compress Your JS
11.Learn the Library

Read more at jQuery Performance Rules

Kind regards,
Mostafa Anoosheh

No answers yet. Maybe you can help?

Tags
Interesting resources
Asked by
Mostafa Anoosheh
Top achievements
Rank 1
Share this question
or