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

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

Web Dev Tutorials

1 год назад

67,312 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@johnnyvlee
@johnnyvlee - 15.11.2023 22:12

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

Ответить
@user-jz6lv9wy5t
@user-jz6lv9wy5t - 06.11.2023 09:23

where is the link to the project with that code in git ? I could not find it via its git repo

Ответить
@ChrisWalshZX
@ChrisWalshZX - 03.11.2023 13:50

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.

Ответить
@Melissa-mo2mr
@Melissa-mo2mr - 27.09.2023 13:46

what editor you using ? vs code editor or ?

Ответить
@MarkcDuke
@MarkcDuke - 17.09.2023 22:38

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

Ответить
@souravkumar-jw6fg
@souravkumar-jw6fg - 01.09.2023 11:01

nice😀😀😀😀😀😀😀

Ответить
@popeyee_7877
@popeyee_7877 - 14.08.2023 23:51

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

Ответить
@kortisnet2315
@kortisnet2315 - 08.08.2023 03:25

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

Ответить
@alalyrealestate1136
@alalyrealestate1136 - 26.07.2023 14:00

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

Ответить
@John-wx3zn
@John-wx3zn - 26.06.2023 22:21

Thank you. I found that useful.

Ответить
@ajandresiwakwi9882
@ajandresiwakwi9882 - 18.06.2023 18:11

this idea was really helpful thank you!

Ответить
@yamanonagame
@yamanonagame - 07.06.2023 17:02

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

Ответить
@kyleryxn
@kyleryxn - 20.04.2023 12:13

Doesn't work me for, the loader appears as soon as the first page loads, without me clicking a link. Full source code wold help

Ответить
@ahmedhemdan707
@ahmedhemdan707 - 15.04.2023 01:58

Very simple and helpful thanks <3 <3

Ответить
@asalihab
@asalihab - 14.04.2023 21:05

That's great, thank you

Ответить
@lyricspower123
@lyricspower123 - 03.03.2023 04:15

thanks man! this video is very helpful

Ответить
@cedriic0
@cedriic0 - 01.03.2023 13:33

Thanks bro, you helped me out

Ответить
@RCshiat
@RCshiat - 13.02.2023 01:57

For anyone getting an error, just replace "document.body.removeChild("loader");" with "loader.remove();".

Ответить
@maykolandres9280
@maykolandres9280 - 14.01.2023 14:45

Thanks bro, it really helped me!

Ответить
@VanyaSkeedan
@VanyaSkeedan - 14.12.2022 21:24

Brooooo
Thank you, bro
Very cool 😎

Ответить
@raeesshahsani
@raeesshahsani - 24.11.2022 14:01

Hey there, the code is perfectly working, except for the statement where it is mentioned, document.body.removeChild("loader"); 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.

Ответить
@geextrix1538
@geextrix1538 - 30.10.2022 01:36

I keep getting errors on document.body.removeChild("loader"). Put my loader right after body and used this document.body.removeChild(document.body.firstChild). Great tut, btw.

Ответить
@leonardflores6218
@leonardflores6218 - 26.09.2022 04:10

Thanks

Ответить
@sheikhfarid9715
@sheikhfarid9715 - 07.08.2022 09:46

Thanks Man ❤️

Ответить
@Manucraft98
@Manucraft98 - 03.08.2022 21:33

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 ☺️

Ответить