+ 4
How to add loading animation to my websiteđ
I made a loading animation few months back can anyone tell me how to add that to my another website so the animation plays while the page loads
1 Answer
+ 23
//Javascript
window.onload = function (){
//Your code
}
//jQuery
$(window).load(function(){
$('loading').fadeOut();
});
//idk about JS or jQuery but best option is by using ajax : https://stackoverflow.com/questions/244183/how-to-display-a-loading-screen-while-site-content-loads
https://www.google.com/amp/s/www.geeksforgeeks.org/how-to-show-page-loading-div-until-the-page-has-finished-loading/amp/