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).
Did you try to put at the very end of your body the following?