+ 4

How can I make my loader appear before my page load?

Web page loader

9th Jan 2021, 4:32 AM
Dzikamayi Mhete
Dzikamayi Mhete - avatar
2 Answers
+ 9
You can make use of onload event that occurs when an object has been loaded. https://code.sololearn.com/W5n7NrBx9TL6/?ref=app Another way is by using setTimeout() method that executes after waiting for a specified time interval. Syntax- setInterval(func,milliseconds)
9th Jan 2021, 7:16 AM
Aditya
Aditya - avatar
+ 2
Just use onload to disable loader and turn on page element, eg. large image https://code.sololearn.com/WPRH6RR8G850/?ref=app
9th Jan 2021, 7:44 AM
CalviŐ˛
CalviŐ˛ - avatar