You shouldn't use jQuery, inline CSS and inline JS right before closing </body> tag.
Extra HTTP request has more overhead then few inline bytes.
if you put that code at bottom, you won't need jQuery to know if page is ready, and won't need extra HTTP request.