I want to rewrite this line without using jQuery so it can be applied quicker (and before the downloading of the jQuery library). The line is...
$(document).ready(function() { $('body').addClass('javascript'); });
If I added it to the html
element instead, would I be able to leave off the DOM ready part? One problem with this though is the validator doesn't like the class attribute on the html
element, even if it is inserted with JS.
So, how would I rewrite that without jQuery?