Running javascript after page is fully rendered

Do you mean after all the images have been loaded?

I think window.onload is what you’re looking for

window.onload = function() {
    //dom not only ready, but everything is loaded
};

EDIT

Per Chris’s comment, here’s the jQuery way:

$(window).load(function() {
    //dom not only ready, but everything is loaded
});

Leave a Comment