Тёмный

Ultimate Guide to HTML5 Images 

developedbyed
Подписаться 939 тыс.
Просмотров 30 тыс.
50% 1

Опубликовано:

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 73   
@AseDeliri
@AseDeliri Год назад
Another optimization you can set is decode=async along with your loading lazy attribute. From Mozilla Docs, "Decode the image asynchronously and allow other content to be rendered before this completes."
@juanmacias5922
@juanmacias5922 Год назад
Thank you! I was just thinking about switching out my images to use webp and avif, after Chrome's Lighthouse screamed at me lol but seeing you can also compress images was very helpful!
@dotpenji
@dotpenji Год назад
Great job explaining image optimization and lazy loading! How can I efficiently handle responsive images in situations where I have various screen sizes and resolutions to consider, especially for background images in web design?
@UserPat-g4z
@UserPat-g4z 11 месяцев назад
I have a deep appreciation for this style of content, please keep it up! ❤❤❤
@rolf9285
@rolf9285 Год назад
I'm missing the height and with on the img tag. You want to set them so that you don't get any CLS during loading of the page. This also helps improve your SEO score.
@blackpurple9163
@blackpurple9163 Год назад
CLS? What's that?
@dmeredith77
@dmeredith77 Год назад
@@blackpurple9163 Cumulative Layout Shift
@raziuldev
@raziuldev Год назад
@@blackpurple9163Cumulative Layout Shift (CLS) is basically important for SEO.
@lokystaz
@lokystaz 7 месяцев назад
@@blackpurple9163 Cumulative Layout Shift (CLS) is a stable Core Web Vital metric. It's an important, user-centric metric for measuring visual stability because it helps quantify how often users experience unexpected layout shifts. A low CLS helps ensure that the page is delightful
@djfago6240
@djfago6240 Год назад
he is always playful and smart. very good developer. with love from Belgium
@CrispyCircuits
@CrispyCircuits Год назад
There is actually a substantial group of people that use text only browsers, such as lynx, etc. Mostly a bit nerdy or unaware of these. Why are they used? Fast fast fast! They show the alt in place of the image. No waiting for the big browsers to load and unload. I also use title occasionally where it's helpful. (Not that often). Also, text only means no Javascript. Which is both good and bad. element is helpful there.
@lokystaz
@lokystaz 7 месяцев назад
As a Linux user I always use ImageMagik CLI for all my image resize, compression, crop....etc
@bozzhik
@bozzhik Год назад
you can use the picture tag not only for media queries. but also for downloading webp images that weigh less than jpg. and as a fallback jpg
@bancroftberlin
@bancroftberlin Год назад
Always nice to meet another fan of Hua's Doodle Dazzled Digital Universe!
@developedbyed
@developedbyed Год назад
Hahahaha
@kubazary1408
@kubazary1408 Год назад
Great video! Thank you. I have a request for you. Your videos are engaging to watch. Could you create a video showing how to style images to make them responsive? I mean, for example, if we have a large image on the homepage, what CSS properties can we apply to make it look nice on every device? Maybe we also need to change the image from a 16:9 aspect ratio to a 9:16 aspect ratio on smaller devices. I'm looking for someone like you to create a detailed video about this. Thank you in advance.
@godwindaniel367
@godwindaniel367 Год назад
You can use media queries for this, resizing the image as deemed fit.
@_remma
@_remma Год назад
I like to use caesium image compressor. It's amazing for compressing images.
@samobludni
@samobludni Год назад
Thank you so much for this, I rarely turn myself on HTML basics, but this is so so neccecary and usefull...thank you one more time!
@Wwllmm_
@Wwllmm_ Год назад
thanks bro ! your channel is my favourite to learn coding
@nikilragav
@nikilragav Год назад
I disagree that phone uses a lower quality. Lots of phones have significantly higher pixel density / are more likely to be "retina" (pixel indistinguishable) at the typical viewing distance compared to computer monitors.
@emmanuelcastillo6954
@emmanuelcastillo6954 Год назад
I absolutely love this type of content, keep it going man ❤❤❤
@Alfrednohike9909
@Alfrednohike9909 Год назад
We love you Ed
@mikkyonuma5781
@mikkyonuma5781 Год назад
Dev you have been of a great help to me in the last few years as a self-taught developer. Right now I need a job. It has been a real issue for me. I have been a developer of self, building projects for clients as a freelance but I really want to go out of this shell and work in real life company. This is a great problem for me. Please I need your help.
@PetrosZoric
@PetrosZoric Год назад
Now that's the content we want to see, keep it up!
@realfejiro
@realfejiro Год назад
Ed you never miss.
@kapteinkonyn3450
@kapteinkonyn3450 Год назад
You are the best, sir!
@southcoastinventors6583
@southcoastinventors6583 Год назад
Another trick used is having a very low rez version of the picture show up before the full one is loaded good video.
@hinoki.mp4173
@hinoki.mp4173 3 месяца назад
Hello, very useful video! I was following the steps and I don't get why the picture tag gives an automatic resizing to my images. Is it something to do with the fact that I'm using bootstrap? maybe it impresses default sizes to the tag? I'm still figuring it out, if someone has the answer, I would appreciate it. Thanks for the tutorial!
@XGuD.
@XGuD. Год назад
Hey ed, Really appreciate your🤘🏻 hard work, honestly saying your topics are catchy i am regularly watching your videos, it helps me to fix my mistakes. There is one request. I want you to make one video on creating E-commerce application using MERN from scratch. This will help us to get an idea about how to create any app from scratch. Thank you🤝
@houssembenothmen7250
@houssembenothmen7250 Год назад
i think the best for img in csas for default values to use max-width: 100% some images won't be fit for big containers and forcing it at 100% might make it pixelated
@vishweshwarbhat8736
@vishweshwarbhat8736 Год назад
bro actually worked holy shit
@PicSta
@PicSta Год назад
What do you think about using newer image formats such as WebP & Avif?
@ryaneden4604
@ryaneden4604 Год назад
Hi Ed! Are you still in the process of updating your Javascript course?
@babayaga6172
@babayaga6172 Год назад
Sir how to optimize nextjs images i am so frustrated when i used them width is required or fill layout or even we give width and height it yelling about priority but i don't need because i want lazy loading i am so obsessed with this
@nikilragav
@nikilragav Год назад
is there a way to move those media queries @6:37 for choosing which image source to use into CSS? I don't like the html having sizing info
@Nitin-Pandita
@Nitin-Pandita Год назад
Amazing video , please make a tutorial for figma please, I love your design
@wesamnajjom6995
@wesamnajjom6995 Год назад
Thanks for the information ❤️
@almospal4480
@almospal4480 Год назад
I have a question next js related. How can I do the same thing what you did with the picture tag but now with Image? for some reason it does not work. probably bc the picture element is just a wrapper of the img and not the Image it self.
@matti.2937
@matti.2937 Год назад
wth O__O! I was making a photo gallery app, and needed help with image optimization ! How does Ed know
@juanmacias5922
@juanmacias5922 Год назад
lmfao right! Same, he's just reading everyone's mind!
@paulthomas1052
@paulthomas1052 Год назад
Great video - very useful !
@raouftouati4711
@raouftouati4711 Год назад
can i have a heart from you for the first time
@wootwoots
@wootwoots Год назад
NB : img should be used with " " and not a div as parent container 😡. You dont need to set a height of auto for an img, as long as its width 100% and whatever object-fit you want to use. the width of the parent is enough to constraint the img, and keep the image ratio. (as long as you ofc don't set a height to the parent, even tho generaly you want to avoid set height to anything, unless really necessary)
@blackpurple9163
@blackpurple9163 Год назад
Animating images under certain conditions like when you reach a breakpoint and another image is to be rendered, like in your case it went from horizontal dolphin in desktop mode to vertical one in tablet and lower, in the case if the div containing it could rotate it'd look fun, more lively instead of just simply changing the image, or add blur or pixelation/mosaic effect when the images swap, would it be possible to do with minimal code? I use react js
@utkarshjha1969
@utkarshjha1969 Год назад
that would be unnecessary since device width do not change, so it will be either one image or another. There is no way for a user to change their device width apart from a desktop user changing the size of the window, which is unlikely. Breakpoints are used to define what happens at what screen size , how it happens does not matter because it will always be on either one side of the breakpoint, they will not be transitioning from one side to other. On the other hand it is very much possible, just rotate the div or add a filter using some svg or any other effect and set transition and duration for that effect, and voila you have ur required transition when size changes which 99% of the audience wont see haha
@emmanuelowino4291
@emmanuelowino4291 Год назад
Nice🎉🎉
@crim-son
@crim-son Год назад
Picture of Dolphins mating on screen😂, don't think I don't catch that😂
@pidginblock
@pidginblock Год назад
This is amazing
@almasakhmetov3121
@almasakhmetov3121 Год назад
What is that stunning art website, give me the figma design of it pleaseeeeee!
@kevroytaylor7006
@kevroytaylor7006 9 месяцев назад
Can you make chrome extensions in a video?
@chhavimanichoubey9437
@chhavimanichoubey9437 Год назад
amazin
@mamasiddiqove
@mamasiddiqove Год назад
cool tut, loved
@ahmedgebali9851
@ahmedgebali9851 Год назад
I only use Caesium to compress 99% of the image size without losing quality
@martunjaykumar752
@martunjaykumar752 11 месяцев назад
👍
@filipkovac767
@filipkovac767 Год назад
good one, but I wouldn't call it ultimate, the video contains like half of the img stuff
@JamesWelbes
@JamesWelbes Год назад
What's Twitter?
@Way_Of_The_Light
@Way_Of_The_Light Год назад
I want the wallpaper on your desktop 😇
@ridass.7137
@ridass.7137 Год назад
whoah, so you dont need react to render a page lkke this? thats bonkers
@DaddyCation_07
@DaddyCation_07 Год назад
Bro Can you make Video About the Animated Monkey Avatar Login Form Please 🥺
@kdot78
@kdot78 Год назад
wtf?
@icoderdev
@icoderdev Год назад
@rezahonor7913
@rezahonor7913 Год назад
👏👏
@edwinndiritu9802
@edwinndiritu9802 Год назад
Got here early
@killmix-plays
@killmix-plays Год назад
e-commerce
@leodwivedi
@leodwivedi Год назад
TIP: Just copy image and paste on figma. No need for download
@MarkPanado
@MarkPanado Год назад
I thought this was an ultimate guide. I feel the video is lacking
@blaqbrane8166
@blaqbrane8166 Год назад
Let's say you are fetching and displaying an image from an API, how do you compress the image.
@dimitartanev97
@dimitartanev97 Год назад
You do that on the backend before you store it on the CDN.
@marcframe7449
@marcframe7449 Год назад
onError event is a pretty important as well for rendering a fallback
Далее
I found more incredible 3D personal portfolios!!!
19:12
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 960 тыс.
A Full Guide to CSS UNITS!
13:38
Просмотров 16 тыс.
The ultimate guide to web performance
6:43
Просмотров 433 тыс.
Background images with HTML & CSS
20:19
Просмотров 367 тыс.
Why Beautiful Websites Don’t Convert
12:57
Просмотров 143 тыс.
world's shortest UI/UX design course
6:53
Просмотров 1,2 млн
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 480 тыс.
7 ways to deal with CSS
6:23
Просмотров 1,1 млн