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).
just put this
<script>document.body.className += ' javascript';</script>
before </body>
tag. Simple and easy (and very close) solution.
I dont know about vanilla JS, but you can write:
document.getElementsByTagName('body')[0].className += ' javascript';
at the bottom of the page (before closing the body tag).