How to make my code display that image on load then disappear when the page finish loading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make my code display that image on load then disappear when the page finish loading

On load image https://code.sololearn.com/WoHys05rAkry/?ref=app

28th Nov 2021, 3:17 PM
D Doyen
D Doyen - avatar
3 Answers
+ 1
Yeah I got it done so I removed it
28th Nov 2021, 5:32 PM
D Doyen
D Doyen - avatar
0
"load" event is fired when the page, including any resource needed to display the page as intended had been downloaded. I think you probably want to hide the #loader by setting its `style.display` attribute to 'none' when that event fires, but let it show initially. P.S. Image link seems invalid, it's not loading for me ...
28th Nov 2021, 3:47 PM
Ipang
0
How's it going? I see you have made changes in the code ...
28th Nov 2021, 5:04 PM
Ipang