I have been having a problem lately with my JavaScript CODE and taking a portion of my code out of my $(document).ready() and putting it within $(window).load() fixed the problem.
Now I understand that window.load is fired just after document.ready, but why is it not ready after document.ready, that is after window.load()?
loadis called when all assets are done loading, including images.readyis fired when the DOM is ready for interaction.From the MDC, window.onload:
From the jQuery API documentation, .ready( handler ):