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

  Рет қаралды 88,352

Web Dev Tutorials

Web Dev Tutorials

Күн бұрын

Пікірлер: 47
@yamanonagame
@yamanonagame Жыл бұрын
Excellent! This is exactly what I wanted to implement. Thanks!
@ChrisWalshZX
@ChrisWalshZX Жыл бұрын
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.
@TheHassankhattab
@TheHassankhattab 9 ай бұрын
Thank you so much. I'm not a coder, where can I find the source code of this?
@matuscesnak6299
@matuscesnak6299 11 ай бұрын
Bro, you dont know how much you helped me!!! thanks
@developershub2024
@developershub2024 8 ай бұрын
Not only you, even me too!
@ajandresiwakwi9882
@ajandresiwakwi9882 Жыл бұрын
this idea was really helpful thank you!
@ChrisWalshZX
@ChrisWalshZX Жыл бұрын
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.
@ahmedhemdan707
@ahmedhemdan707 Жыл бұрын
Very simple and helpful thanks
@anondz2382
@anondz2382 10 ай бұрын
Bro you helped me a lot , thank you
@developershub2024
@developershub2024 8 ай бұрын
Thank you so much, very helpful content. i will implement this in my Django project!!
@raeesshahsani
@raeesshahsani 2 жыл бұрын
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.
@kamranbayramov8169
@kamranbayramov8169 9 ай бұрын
thanks man short and useful
@maykolandres9280
@maykolandres9280 Жыл бұрын
Thanks bro, it really helped me!
@iGustavoMaster
@iGustavoMaster 10 ай бұрын
Thanks bro, Excellent !
@kortisnet2315
@kortisnet2315 Жыл бұрын
loader--hidden is giving console error Uncaught TypeError: Cannot read properties of null (reading 'classList')
@Melissa-mo2mr
@Melissa-mo2mr Жыл бұрын
what editor you using ? vs code editor or ?
@webguy-jd3ml
@webguy-jd3ml 6 ай бұрын
great example - thanks.
@John-wx3zn
@John-wx3zn Жыл бұрын
Thank you. I found that useful.
@techstreamm-1
@techstreamm-1 6 ай бұрын
Thank you Great Tutorial
@lyricspower123
@lyricspower123 Жыл бұрын
thanks man! this video is very helpful
@InkTaleswithDuke
@InkTaleswithDuke Жыл бұрын
Can you help out My loader isn’t removing from the screen
@septionugroho2366
@septionugroho2366 Жыл бұрын
same here, still spinning till now 🥲
@ranzethan
@ranzethan 9 ай бұрын
how do i set the loading time? because mine lasts very quickly
@mindacid3274
@mindacid3274 3 ай бұрын
do a settimeout
@sheikhfarid9715
@sheikhfarid9715 2 жыл бұрын
Thanks Man ❤️
@shunfa65
@shunfa65 2 ай бұрын
it's helpful , thank you. i 'v subscription too
@alalyrealestate1136
@alalyrealestate1136 Жыл бұрын
thank you bro .. How to add it while sending form data to record it in mysql database via php script
@cedriic0
@cedriic0 Жыл бұрын
Thanks bro, you helped me out
@VanyaSkeedan
@VanyaSkeedan 2 жыл бұрын
Brooooo Thank you, bro Very cool 😎
@geextrix1538
@geextrix1538 2 жыл бұрын
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.
@lucgoeman304
@lucgoeman304 6 ай бұрын
my spiner does not spin and sits in the topleft corner?
@popeyee_7877
@popeyee_7877 Жыл бұрын
Can you show how I can put an image in the circle?
@johnnyvlee
@johnnyvlee Жыл бұрын
Just a suggestion but a link to a working codepen would have been really helpful
@asalihab
@asalihab Жыл бұрын
That's great, thank you
@NiyomufashaProsper
@NiyomufashaProsper 5 ай бұрын
Thank you bro
@benjaminaRandriantsoa
@benjaminaRandriantsoa 7 ай бұрын
Thanks bro
@leonardflores6218
@leonardflores6218 2 жыл бұрын
Thanks
@Manucraft98
@Manucraft98 2 жыл бұрын
Cool man thanks
@codefoxx
@codefoxx 2 жыл бұрын
No problem! and are you referring to lazy loading images?
@Manucraft98
@Manucraft98 2 жыл бұрын
@@codefoxx yeah, both lazy loading and skeleton loading (css) as a temporary replacement. That would be great!
@kyleryxn
@kyleryxn Жыл бұрын
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
@etsnr05
@etsnr05 Жыл бұрын
that's the purpose of it, to work when any page loads
@booraq_pegazus
@booraq_pegazus 3 ай бұрын
first thank you for this nice code and please give us a link of the code thank you in advance
@RCshiat
@RCshiat Жыл бұрын
For anyone getting an error, just replace "document.body.removeChild("loader");" with "loader.remove();".
@jerrytonmoy
@jerrytonmoy Жыл бұрын
You are right brother
@Mohamed_MDJ
@Mohamed_MDJ Жыл бұрын
Ye bcuz removeChild accept node👍
Use Spinner and Create Page Loader in Bootstrap 5
8:23
ByteGrad
Рет қаралды 18 М.
Color Changing Shiny Loader using HTML & CSS
4:32
CodingNepal
Рет қаралды 79 М.
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,9 МЛН
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,8 МЛН
Pass By Value vs Pass By Reference
26:54
TechByKarim
Рет қаралды 74
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН