[jQuery] Newbie: fadeOut() followed by fadeIn("slow") flickering
I just tried out this technique and it works great. You need to use
document.documentElement instead of document:
$(document.documentElement).addClass( 'js' );
-Mike
> From: John Resig
>
> That's a very interesting idea - and one that I had not seen
> before. I like how they get around the fact that the DOM
> isn't loaded by just binding to the document element.
>
> My biggest issue with integrating this into jQuery (by
> default) is that it forces the developer to develop and write
> their CSS in one specific way, using one specific style or convention.
>
> However! It seems like it would be really trivial to do this
> yourself (as a user of jQuery). Without actually testing it -
> this should suffice, shouldn't it?
>
> $(document).addClass("js");
> On 3/29/06, Anders <perifer@gmail.com>