How to Create and Display a Loading Spinner on Page Load (without JQuery) - HTML, CSS & JavaScript

preview_player
Показать описание
In this tutorial, you'll learn how to create and show a loading spinner until the page has finished loading.

Sponsor me on GitHub!

Follow my blog:

Рекомендации по теме
Комментарии
Автор

Excellent! This is exactly what I wanted to implement. Thanks!

yamanonagame
Автор

this idea was really helpful thank you!

ajandresiwakwi
Автор

thanks man! this video is very helpful

lyricspower
Автор

Very simple and helpful thanks <3 <3

ahmedhemdan
Автор

Bro, you dont know how much you helped me!!! thanks

matuscesnak
Автор

Thank you so much, very helpful content. i will implement this in my Django project!!

developershub
Автор

Hey there, the code is perfectly working, except for the statement where it is mentioned, The browser would throw error: Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

raeesshahsani
Автор

thank you bro .. How to add it while sending form data to record it in mysql database
via php script

alalyrealestate
Автор

Don't you need the spinner to appear when "leaving" a page as by the time the new page has started to load in and the "load" event has fired, you've already done most of the waiting? For a web portal, we need to sometimes do timely operations getting data prior to presenting the page (document) to the browser. Let me know what you think. Thanks.

ChrisWalshZX
Автор

Thank you so much. I'm not a coder, where can I find the source code of this?

TheHassankhattab
Автор

what editor you using ? vs code editor or ?

Melissa-momr
Автор

Can you show how I can put an image in the circle?

popeyee_
Автор

5:40 The removeChild() parameter shouldn't be in quotes. You are removing the DOM element, but a string that happens to have the same name.

ChrisWalshZX
Автор

loader--hidden is giving console error Uncaught TypeError: Cannot read properties of null (reading 'classList')

kortisnet
Автор

I keep getting errors on Put my loader right after body and used this Great tut, btw.

geextrix
Автор

how do i set the loading time? because mine lasts very quickly

ranzethan
Автор

Cool man thanks <3
Could you also show us how to add a skeleton loading on multiple images?

With or Without jQuery.
It would be great ☺️

Manucraft
Автор

my spiner does not spin and sits in the topleft corner?

lucgoeman
Автор

Can you help out
My loader isn’t removing from the screen

MarkcDuke
Автор

Just a suggestion but a link to a working codepen would have been really helpful

johnnyvlee