Antoine Delia
Antoine Delia

Reputation: 1845

Window.load executes before images are loaded

I'm trying to execute a function after the page is completely loaded (including images) by using

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

However, this function is executed when the DOM is loaded (without waiting for the images).

Have you got any idea what could be the problem ?

Upvotes: 2

Views: 1583

Answers (1)

M.R.Karimi
M.R.Karimi

Reputation: 95

Maybe you could test this jQuery plugin: waitForImages

Upvotes: 1

Related Questions