javascript - jQuery callback once everything in the DOM is loaded, and after the first, initial load -


a page loads, scripts, css, basic dom, finished.

a user something, , function loads several elements dom. videos, divs background images, imgs. takes while.

they append()ed html code, nothing fancy, , browser of course starts of requests respective resources.

i want callback event once of basic http requests finished. like

window.onload = function() { .. } 

or

$(window).load(function() { .. }); 

but neither of seem work.

i'm dealing multiple types of elements, basic like

$('img').on('load',function() { .. }); 

would not work. ideas?


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -