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. video
s, div
s background images, img
s. 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
Post a Comment