DEV Community

Discussion on: How to add loader in the website in a few seconds ๐Ÿ˜Ž

Collapse
 
taufik_nurrohman profile image
Taufik Nurrohman • Edited

Add this to re-enable the loading layer on page exit(ing):

window.addEventListener('beforeunload', function() {
    spinnerWrapper.style.display = "";
});
Collapse
 
mzaini30 profile image
Zen

Kayaknya nggak perlu deh

Collapse
 
taufik_nurrohman profile image
Taufik Nurrohman • Edited

Coba dulu. Terus klik salah satu tautan di halaman. Efek loading bakal muncul lagi.

Thread Thread
 
mzaini30 profile image
Zen

Eh iya juga ya

Thread Thread
 
atulcodex profile image
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

Sorry bro but I can't understand your language ๐Ÿ™„ but thanks for commenting

Thread Thread
 
mzaini30 profile image
Zen

Hehehehehe. I so sorry. I use Indonesian because, Taufik is Indonesian. Hehehehehe

taufik_nurrohman image
Thread Thread
 
atulcodex profile image
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

Cool ๐Ÿ‘๐ŸŽ‰๐Ÿ’

 
atulcodex profile image
๐Ÿšฉ Atul Prajapati ๐Ÿ‡ฎ๐Ÿ‡ณ

๐Ÿ˜