Image Performance Optimization in Angular 14 - What You Should Know

  Рет қаралды 5,467

Code Shots With Profanis

Code Shots With Profanis

Күн бұрын

Пікірлер: 29
@sergiokagiema9658
@sergiokagiema9658 2 жыл бұрын
That was so sick! Thanks for sharing Fanis!
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it Sergio :)
@028-manikandan3
@028-manikandan3 2 жыл бұрын
Vera level Vera level 👍👍👍
@sergiocebrian85
@sergiocebrian85 2 жыл бұрын
This feature is great! No more optimizing images separately. Angular improves with each release.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Angular 14 and 15 brought up so many great features! Glad you liked it!
@boriscissoko2865
@boriscissoko2865 2 жыл бұрын
very powerful feature in angular... Thanks for your explanation
@ranjanadeore2957
@ranjanadeore2957 2 жыл бұрын
Thank you sir for another great explanation. Eagerly waiting for your next video.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Thanks!! I will upload new content very soon :)
@osasiria2728
@osasiria2728 2 жыл бұрын
Thanks for sharing this knowledge.
@hodapro3394
@hodapro3394 Ай бұрын
can i use this in angular 16 ?
@CodeShotsWithProfanis
@CodeShotsWithProfanis Ай бұрын
yeah! :)
@IbrahimElmourchidi
@IbrahimElmourchidi 2 жыл бұрын
Thanks a lot for your simple explanation and effort
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Glad you liked it! :)
@madeOfClay99
@madeOfClay99 2 жыл бұрын
I think in order to use the ngSrc is also mandatory to define a width and height, I can't just use as , and the height and width should be number values, it doesn't work with values such as 'auto' or using 'rem' units...
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
Yes correct, the width and height are mandatory for the CLS optimization web.dev/optimize-cls/#images-without-dimensions
@tsenguun
@tsenguun 2 жыл бұрын
Not mandatory. You can use fill attribute and use a container that has width and height. It can be dynamic as well. Just make sure you have position relative on the container
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
@@tsenguun can you reproduce that and send a code example? Curious to see it working with the image directive
@niconel4941
@niconel4941 2 жыл бұрын
Thank you! Having this exact problem right now.
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
I hope this can solve your problem!
@stukituk
@stukituk 2 жыл бұрын
Thanks for this video
@GrAnChA1988
@GrAnChA1988 2 жыл бұрын
Nice video!!
@carloszm7494
@carloszm7494 2 жыл бұрын
Thanks, fantastic
@virajjoshi7569
@virajjoshi7569 2 жыл бұрын
Is there any way I can perform this in Angular 11
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
There is no Angular standard way to do this. You can achieve the same by using the img directives One option is to use the lazy attribute developer.mozilla.org/en-US/docs/Web/Performance/Lazy_loading
@ahm2004ad
@ahm2004ad 2 жыл бұрын
You are great. 😉 I have suggestion for the next video which is global error handling with logging at the backend ( http errors or client side error)
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
That's a great suggestion! Noted ;)
@_Greenflag_
@_Greenflag_ Жыл бұрын
Well sure, not bad. But for images, you should also resize them and compress them. You can go from a 2Mo image to 200Ko.
@SonuSindhu
@SonuSindhu 2 жыл бұрын
Great addition. But replacing the image is still not compatible...
@CodeShotsWithProfanis
@CodeShotsWithProfanis 2 жыл бұрын
What do you mean by "replacing the image"?
Angular 14 Functional Router Guards: What They Are & How to Use Them
23:45
Code Shots With Profanis
Рет қаралды 6 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Announcing ServiceNow AI Agents
1:03
ServiceNow
Рет қаралды 194 М.
Angular Performance Optimization using Pure Pipes (2020, Advanced)
13:00
Decoded Frontend
Рет қаралды 31 М.
Boost Your Core Web Vitals with Angular 15's NgOptimizedImage Magic
6:46
Angular | Implement Your Own Infinite Scroll In Less Than 20 minutes
16:43
First look at Signals in Angular
18:43
Decoded Frontend
Рет қаралды 47 М.
Learn How to Use Angular's 17 Defer Block
23:50
Code Shots With Profanis
Рет қаралды 4,2 М.
Local Change Detection in Angular is easy with Signals
10:40
Code Shots With Profanis
Рет қаралды 3 М.
Angular Config With JSON Files
12:28
Code Shots With Profanis
Рет қаралды 11 М.
Web Workers in Action - Performance Boost for Web Applications (2023)
22:51