DOM
$(document).ready( function() {
});
or a download event to wait for a download absolutely absolutely
$(document).load( function() {
});
If you don’t know that you need to use the load event, I would use a ready-made one (which, I believe, is a DOMContentLoaded event).
source
share