Lazy-Loaded Images - Code This, Not That

Lazy-Loaded Images - Code This, Not That

Fireship

5 лет назад

88,932 Просмотров

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


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

ANGRY MAN
ANGRY MAN - 24.07.2023 18:42

UPDATE:
you can lazy-load an img by adding loading='lazy' attribute
```
<img src="image.jpg" alt="..." loading="lazy" />
<iframe src="video-player.html" title="..." loading="lazy"></iframe>
```

Ответить
Marko Pantovic
Marko Pantovic - 09.06.2023 02:27

This video is amazing mate!
Thank you for this quality content. Keep it up!

Ответить
TESLA
TESLA - 09.04.2023 17:28

The video was very useful for me. thanks

Ответить
David Zobrist
David Zobrist - 30.01.2023 19:34

I still dont understand it but i love it

Ответить
You've Got Mail!
You've Got Mail! - 20.09.2022 10:52

console 💩! lmfao.

Ответить
Eldin Dezmic
Eldin Dezmic - 23.08.2022 23:03

But how do make the same animation when i scroll back

Ответить
ינון אלבז
ינון אלבז - 05.05.2022 21:03

wow!

Ответить
8koi
8koi - 26.04.2022 18:48

Now loading=lazy is accepted around browsers

Ответить
Hatem Soliman
Hatem Soliman - 27.01.2022 22:15

Brilliant! I really needed this guide, really helped make my code become more efficient; in fact, this whole series "Code This Not That" is amazing!

Ответить
Jean
Jean - 23.01.2022 16:53

why not just set the attribute "loading" of your img?
<img loading="lazy" ... /> is even more efficient, isn't it?

Ответить
Malik Suleman
Malik Suleman - 15.01.2022 12:51

but this is without on scroll if want to make it on scroll then what have to do? on scroll function not working for me

Ответить
Ritesh
Ritesh - 09.01.2022 09:55

Can anyone tell me the name of the font Jeff uses in VS Code?

Ответить
Christian
Christian - 24.12.2021 15:43

Hello fireship gib tshirt

Ответить
Saife
Saife - 23.12.2021 18:21

😍😍😍😍😍 u are genius

Ответить
The TopShottah
The TopShottah - 26.11.2021 23:35

Who taught fireship???

Ответить
misopetrik
misopetrik - 13.11.2021 15:37

Great video!

Ответить
Rahul Singh
Rahul Singh - 09.09.2021 08:28

Thanks dude, for not making 20000000000mins long video with unnecessary explanation. Thanks for keeping it Lit 🔥🔥

Ответить
Eduardo Paixão
Eduardo Paixão - 28.08.2021 07:13

Tks!!

Ответить