I'm working on a site that has a lot of Javascript and jQuery--as far as I can tell most of it is triggered to load after the document is ready. However, when the page loads you get about a second of white FOUC. But if you disable Javascript completely, there is no white flash at all.
How can I make sure that the Javascript doesn't begin loading until after the page loads? It is already liberally using
$(document).ready(function(){ /*. . .*/});
... so Javascript shouldn't fire until the page is done loading and is rendered... right? But somehow the page waits for the script to finish before rendering--even though it doesn't need to, since the page still looks mostly fine with Javascript totally disabled.