DON'T Serve Unoptimized Images - Webp, Srcset, ImageKit, and more!

DON'T Serve Unoptimized Images - Webp, Srcset, ImageKit, and more!

James Q Quick

2 года назад

62,791 Просмотров

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


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

Striker Alph
Striker Alph - 19.11.2023 17:23

Helped so much❤

Ответить
Patrick Nelson
Patrick Nelson - 06.11.2023 05:34

BlurHash is also another good method for showing blurry placeholder images while waiting for the larger images to load.

Ответить
encycl07pedia
encycl07pedia - 20.09.2023 06:24

You're missing a really huge way to optimize your site with those images: you don't even need 80% of the ones you showcased. Most of it is text on a background. Just put the text as actual text. and put the profile picture circles as the only pictures on the page. It looks like some of them were reused so you'd only need to load 1 or 2 much smaller images instead of 6 huge, mostly-redundant images.

Text shouldn't be in images unless it's a logo or wordmark.

Also your contrast is pretty awful with the black leading 00 on top of a black background. Vincent Flanders of WPTS would have a field day with those images on a website.

WebPs are also just bad for the end user if they want to save them. Lazy loading is the same. It doesn't work if JS is turned off or not supported. Those substitutions and calculations also cost computing power.

For thousands of years (decades, but that's not as fun to say), man has used thumbnails with real image formats. It worked on dial-up. It works today. Just optimize the image by making thumbnails. It's simpler, faster, cheaper, and just works.

Ответить
Zerg Zerg
Zerg Zerg - 19.09.2023 21:42

Why srcset doesn't work. I don't se the changes, but if i 'm making changes in src by addin tr attribute it works fine

Ответить
Brian Dwayne
Brian Dwayne - 24.03.2023 22:37

Very well done. I needed to know this like right now! 🤣

Ответить
bongani ntshangase
bongani ntshangase - 18.03.2023 18:16

Could you please walk us through uploading on imagekit via client, react to be specific.

Ответить
Renato Loefstop
Renato Loefstop - 13.12.2022 17:31

Nice tutorial! What if the requirement was that people need to upload images on let's say a contact form and you need to compress/optimize those before the user uploading them?

Ответить
Thetawise
Thetawise - 07.11.2022 01:34

This is awesome! thanks for sharing :)

Ответить
Allformyequine
Allformyequine - 11.10.2022 16:12

Such great AWESOMENESS! How did I miss this one! Great stuff thank you as usual!!

Ответить
RubberDuckCode
RubberDuckCode - 24.12.2021 18:21

VERY VERY NICE!

Ответить
pixelmasque
pixelmasque - 12.11.2021 16:38

great!

Ответить
ツMati
ツMati - 06.11.2021 17:25

What to do in case a cloud service stops responding for some reason? Can we set a fallback local image to show up instead of an alt attribute text?

Ответить
SmashieHC
SmashieHC - 29.09.2021 14:28

I would love something like this for next/image since I'm currently using that and deployed a Netflix-Clone, but i'm having a hard time optimizing the images. And if I use next/image all of my styling breaks...

Ответить
Sunil Skanda
Sunil Skanda - 24.09.2021 07:53

Thanks 👍

Ответить
Jeysson Gevara
Jeysson Gevara - 24.09.2021 03:35

Now I'm curious on how image kit protects itself from denial of service attacks or prevents people from causing crazy costs to a company by abusing the dynamic imagine generation 🤔

Ответить
Maikol Hernandez
Maikol Hernandez - 18.09.2021 19:11

I love this tutorial... simple, usefull and beautiful. Thank you for sharing.

Ответить
Kira Yamato
Kira Yamato - 31.08.2021 13:20

Is it not loosing the quality of image when you compressed it?

Ответить
IT Giants
IT Giants - 27.08.2021 04:03

Actually I like to use lazysize js library for lazyload it's very useful and easy to use.

Ответить
IT Giants
IT Giants - 27.08.2021 04:02

what is the vscode theme you're using?

Ответить
Linh Khôi Lương
Linh Khôi Lương - 15.07.2021 08:23

I wonder if imagekit support adding metadata such as title or description when requesting and getting response

Ответить
Hamed Kshiem
Hamed Kshiem - 10.07.2021 22:06

I recommend compress.js

Ответить
Tim Bittins
Tim Bittins - 09.07.2021 17:58

If you don't have much time, make it Quick. Cause this guy got you covered.

Ответить
Riju Ghosh
Riju Ghosh - 09.07.2021 07:45

I always use the picture tag with webp and fallback, while using imagekit as cdn

Ответить
Kennedy A
Kennedy A - 09.07.2021 04:30

im interested in this. but i dont like to put 18 minutes of my life to watch this.

Ответить
What The Function
What The Function - 09.07.2021 02:26

This is gold

Ответить
Lucas Mendonca
Lucas Mendonca - 08.07.2021 23:46

These thumbnails with ❌ and ✔️ are great attention-grabbers! keep 'em coming please

Ответить
Rimantas Danilevicius
Rimantas Danilevicius - 08.07.2021 22:40

what about video optimization?

Ответить
RianY2K
RianY2K - 08.07.2021 22:38

thank you for tutorial. Maybe you can use Webpack to compress assets image during building production.

Ответить
Parag Katoch
Parag Katoch - 08.07.2021 20:13

What was the vscode theme name you used?

Ответить
Lưu Duy Toàn
Lưu Duy Toàn - 08.07.2021 19:37

Thank you so much for this tip!!

Ответить
Destin Lee
Destin Lee - 08.07.2021 18:20

Fun watching this now that you told us how it was all done on the last Compressed 🍻

Ответить
Diego Gnoatto
Diego Gnoatto - 08.07.2021 18:11

pretty neat

Ответить
Ivster
Ivster - 08.07.2021 17:46

Good video. I've been doing all these optimizations just recently to improve our LCP score. The only thing missing is webp. We have our own asset server so I'm going to have to dive deep to see what needs to be changed...

I was just wondering, if I had like 100 JPGs, and I wanted to serve them as webp, I'd have to convert the whole batch beforehand right? Converting on the fly might not create any benefits no?... Just wondering...

Ответить
Nyareh David
Nyareh David - 08.07.2021 17:39

Thanks for sharing.
I've just finished my portfolio site and yes, images takes about 40% of loading time.
This gonna be useful.

Ответить
Datosh Code
Datosh Code - 08.07.2021 17:35

Compare a compressed file in the png format and in webp format.

Ответить
TheOG
TheOG - 08.07.2021 17:17

Hi James. I'm curious about one thing; can you please explain why you decided to create an array with the numbers 1-10 and using Foreach, as opposed to using a for loop which wouldn't necessitate creating an array for indexes?

Ответить
Max Programming
Max Programming - 08.07.2021 17:07

THAT IS VEEEERY INTERESTING! Thanks James 🚀🚀🚀

Ответить
Varsha Singh
Varsha Singh - 08.07.2021 17:05

First like comment then see complete video...that much I trust you...

Ответить