window.onload Doesn't Work, Images Not Finished Loading - Javascript

Published: 21 March 2017
on channel: Josh Tam
1,494
10

Javascript window.onload problem. It doesn't work. Or it fires before images are loaded. I faced this stupid problem. It's almost like the JQuery document ready function instead. It's not supposed to. It's supposed to wait till everything is loaded. In the end I found out that using window.addEventListener("load", function(){}); worked!

I hope this can also help you if you are having the same problem!

window.onload doesn't work, window.onload problem, document.onload, window.onload, document.ready, window addeventlistener, javascript, jquery, stackoverflow, html5, web programming, web design

This Video is a Josh Tam X production!
   / joshtamx  
http://joshtam.net
  / joshtamofficial  
  / joshtamofficial  


On this page of the site you can watch the video online window.onload Doesn't Work, Images Not Finished Loading - Javascript with a duration of hours minute second in good quality, which was uploaded by the user Josh Tam 21 March 2017, share the link with friends and acquaintances, this video has already been watched 1,494 times on youtube and it was liked by 10 viewers. Enjoy your viewing!