News for hackers. Stuff that matters.
Re:JavaScript Will Save Us All by notquitehere188 on Friday October 24, 2008 @01:05PM (#342564)
I recently wrote a script to test this.

Using the benchmark at http://www.howtocreate.co.uk/csstest.html I applied all the styles using jquery. It ended up being roughly 10x slower. But the real issue seems to be the browser.

The jquery code finishes up really fast, but the browser sits there for a noticeable delay, presumably rendering. In firefox this means that you look at an unstyled page for a while.

But this only addresses the issue of CSS3 Selectors. I am curious about the possibility of implementing more of CSS3 in jquery. Seems like it would be incredibly slow, will have to try

There are no comments on this comment yet.