I'm trying to get my script to run only after my entire page has loaded included the pictures.
So I have been using this code.
$(document).on('load', function() { $('#loading').hide(); });
This does not work, since it never activates. However, when I use window instead of document then it works, but its not what I need. I need everything including pictures to be loaded before activating.
I'm very confused why this does not work.
EDIT
THis is not a basic onload document, vs document ready question. My pictures are are not fully loaded even when this code loads.
$(window).on('load', function(){ $('#loading').hide(); });