When does JavaScript trigger reflows and rendering?
Browsers are single-threaded beasts* but your JavaScript can still cause very expensive reflows and rendering if you’re not careful.
The important thing is to always remember that reflowing and rendering HTML is the single most expensive operation browsers do. If your page feels sluggish it’s most likely a problem with rendering. While the easiest way to optimize is to get rid of as many nodes as you can, and trying to have simpler CSS rules, sometimes JavaScript is the culprit.
Related Posts :
The JavaScript Framework Matrix, by Mathias Schütz, is a well-presented comparison of the popula ...
Jo is a JavaScript framework for HTML5 capable browsers and devices. It was originally designed ...
If you aren't satisfied with prompt, confirm, alert or window.open, then you need JavaScript di ...
LABjs (loading and blocking JavaScript) is an on-demand JavaScript loader, capable of loading an ...
Highslide JS is an image, media and gallery viewer written in JavaScript. These are some of its ...
Posted on Monday, August 23rd, 2010 at 5:57 am | Category: Uncategorized |
Archives
- December 2010 (167)
- November 2010 (421)
- October 2010 (388)
- September 2010 (628)
- August 2010 (262)