Originally Posted by felgall
Make sure that the <script> tag is in the <head> and that it doesn't specify async or defer so that it actually prevents the page from starting to render until after it finishes running.
Also make sure that the code in the script is set to run immediately and not to wait for the HTML to load.
Done, and done. It's not within jQuery ready, or anything. It should be loading before the rest of the HTML. I'll try to provide some code, but it means manually typing everything, as my dev system is isolated from the internet.
Okay.. I'm a liar.
When I answered, this morning, it was before I had a chance to look over the code, again. Turns out I was wanting to use jQuery $.get(), so (of course) my script came AFTER the src="jquery.min.js".
SOOOOOOO... I moved jQuery down to the bottom of the body, and wrote my own XHR for the AJaX request, set async to false, and viola! The first load of the page in a new browser is a fraction of a second longer than refreshes.