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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -