+ 4
How can I make my loader appear before my page load?
Web page loader
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)
+ 2
Just use onload to disable loader and turn on page element, eg. large image
https://code.sololearn.com/WPRH6RR8G850/?ref=app