Is it possible to detect when all images are loaded via a jQuery event?
Ideally, there should be a
$(document).idle(function()
{
}
As per this answer, you can use the jQuery load event on the window
object instead of the document
:
jQuery(window).load(function() {
console.log("page finished loading now.");
});
This will be triggered after all content on the page has been loaded. This differs from jQuery(document).load(...)
which is triggered after the DOM has finished loading.