- Cache references to accessed elements
- Update nodes "offline" and then add them to the tree
- Avoid fixing layout with JavaScript
Wednesday, June 17, 2009
Best Practices for Speeding Up Your Web Site - Minimize DOM Access
Accessing DOM elements with JavaScript is slow so in order to have a more responsive page, you should: