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.

View Source here

Related Posts :

Posted on Monday, August 23rd, 2010 at 5:57 am | Category: Uncategorized |

Site Meter