Magic of this few lines of JS code ๐
let spinnerWrapper = document.querySelector('.spinner-wrapper');
window.addEventListener('load', function(){
spinnerWrapper.style.display= 'none';
});
Magic of this few lines of JS code ๐
let spinnerWrapper = document.querySelector('.spinner-wrapper');
window.addEventListener('load', function(){
spinnerWrapper.style.display= 'none';
});
For further actions, you may consider blocking this person and/or reporting abuse
Nguyแป n Thanh Hรฒa -
Nguyแป n Thanh Hรฒa -
Pavel Keyzik -
Jeff Edmondson -
Once suspended, atulcodex will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, atulcodex will be able to comment and publish posts again.
Once unpublished, all posts by atulcodex will become hidden and only accessible to themselves.
If atulcodex is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to ๐ฉ Atul Prajapati ๐ฎ๐ณ.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag atulcodex:
Unflagging atulcodex will restore default visibility to their posts.
Top comments (21)
Add this to re-enable the loading layer on page exit(ing):
Kayaknya nggak perlu deh
Coba dulu. Terus klik salah satu tautan di halaman. Efek loading bakal muncul lagi.
Eh iya juga ya
Sorry bro but I can't understand your language ๐ but thanks for commenting
Hehehehehe. I so sorry. I use Indonesian because, Taufik is Indonesian. Hehehehehe
Taufik Nurrohman
Cool ๐๐๐
๐
I noticed in some cases you used
.spinner:before
and.spinner:after
instead of.spinner::before
and.spinner::after
for the pseudo-elements. I think you need to use double colons since a single colon is reserved for pseudo-classes, like:focus
or:hover
.Okay hmm interesting ๐ฒ I will try thanks for your opinion ๐ท
The logic is correct Aleksandr, but in practice this is rarely needed. Most people just use
:
for everything. I've never seen a situation where using::before
worked and:before
didn't.Good to know!
๐ท๐
You are right brother ๐
I had no idea that was so simple without a framework!
Really love this one.
One question is it is compulsory to set the /stimulate page content/ code ...?
No it's your body content I have added it for page content put here your page code. Any other questions bro?
Ohk bro thanks for ur reply
I love to do that โ๏ธ
How would I make the loader disappear in a specific amount of time (100ms, 500ms etc...) instead of on content load?
Hey I'm sorry but I haven't learned advance javascript yet but I have found a useful answer on stackoverflow checkout this link click here