Is there any event for IFrames that fires only when each resource is loaded (script, image, style sheet, dom)? Basically, I want to have loading graphics displayed above the IFrame, and delete it only when everything loads inside, so the user does not see all the downloads.
I am currently using $(iframe).ready(function() { ... });, but it works very early before anything loads.
$(iframe).ready(function() { ... });
You are looking for an event window.onload.
window.onload
window.onload , - (, iFrames ..) , . .
$(window).load(function(){ alert('fired'); });
-JQuery
window.onload = function(){ alert('fired'); };
Source: https://habr.com/ru/post/1758164/More articles:Sending a large email inbox via Gmail or maybe even the Google App Engine app? - phpEffectively use the Google App Engine to send large numbers of emails using PHP? - pythonJAX-WS client authentication on proxy server - javaстрока/массив в bash? - linuxBest practice for creating an ADO.NET DataService client - c #Any simple tool to simulate server load? - perlBest Practice SCRIPT Installation Database - sqlQuery Optimization: Which SELECT syntax is faster? - optimizationSend bitmap data from Flex to Php - flexhow to work with Subversion - svnAll Articles