Optimize the bundle size of an Angular application

  Рет қаралды 54,866

Angular

Angular

3 жыл бұрын

In this video learn how to optimize the bundle size of your Angular applications. You'll learn:
‣ What's tree-shaking
‣ Understanding the structure of your production bundles
‣ Using code splitting and finding suboptimal imports

Пікірлер: 73
@Fireship
@Fireship 3 жыл бұрын
Awesome video!
@antihuman007
@antihuman007 3 жыл бұрын
Wonder who that voice is
@dr.d3600
@dr.d3600 3 жыл бұрын
That voice always awesome 😆
@yurakhomitskyi8762
@yurakhomitskyi8762 3 жыл бұрын
Looks like recursion
@smitpatel4124
@smitpatel4124 3 жыл бұрын
Excellent job buddy. Doing a great work by sharing a very valuable knowledge. Please dont stop sharing.
@thesrinathkamath
@thesrinathkamath 3 жыл бұрын
Bro, is dat you?
@user-lx1xx8jk8q
@user-lx1xx8jk8q 3 жыл бұрын
The voice sounds pretty familiar! 😉
@MrTungDev
@MrTungDev 3 жыл бұрын
haa
@pranambhat7964
@pranambhat7964 3 жыл бұрын
Where!!!!
@gtanmoy
@gtanmoy 3 жыл бұрын
Fireship guy
@TheSiddhaartha
@TheSiddhaartha 3 жыл бұрын
True!
@SwapnilNakate7
@SwapnilNakate7 2 жыл бұрын
@Fireship one
@yurakhomitskyi8762
@yurakhomitskyi8762 3 жыл бұрын
We need more tutorials/guides from Angular. Fireship is great tutorial maker, I believe he can bring Angular to the next level.
@Andriy_Moskalenko
@Andriy_Moskalenko 3 жыл бұрын
що правда, то правда :D
@yogenp
@yogenp 3 жыл бұрын
Much needed video on Angular optimization. Awesome, Angular and Jeff.
@u83rh4xor
@u83rh4xor 3 жыл бұрын
Awesome tutorial! This is so great! Love that you covered specific fixes for moment and lodash. Code splitting at the feature level is awesome! Thanks for this easy-to-follow explanation of how it works. It will really help to teach my team. I would love a tutorial on the more advanced features of preload strategies for those bundles and code splitting at the component level. I'm sure those are coming! You all are doing awesome work with the videos! Keep it up!
@yurakhomitskyi8762
@yurakhomitskyi8762 3 жыл бұрын
Would be cool having video about Best Practice/Anti-Pattern in Angular from Angular team
@yurakhomitskyi8762
@yurakhomitskyi8762 3 жыл бұрын
Hello, Fireship))
@shy1992
@shy1992 Жыл бұрын
Wow! Thank you for the video. I probably paused every 20 sec to check my code for mistakes. Really helpful stuff!
@aram5642
@aram5642 3 жыл бұрын
Proper way of customizing bootstrap or ailwaind deserves a separate video, IMO. Also, when should we re-export imported modules? And does that affect bundle size if you fail to re-export?
@codeaperture
@codeaperture 3 жыл бұрын
I never knew Jeff has another. Thanks to your Slack channel!
@omaralexandro2928
@omaralexandro2928 3 жыл бұрын
The amazing Fireship 😉
@MuhammadFaisal04
@MuhammadFaisal04 3 жыл бұрын
That's awesome Jeff! ;)
@wks1706
@wks1706 2 жыл бұрын
best angular tutorial video!
@user-is5bs8qb4y
@user-is5bs8qb4y 2 жыл бұрын
I learned a lot from this class. Obrigado!
@reach_perumal
@reach_perumal 3 жыл бұрын
Jeff... You are the one 👍👍👍
@nhanth
@nhanth 3 жыл бұрын
Really impressive and useful for everyone.
@pranambhat7964
@pranambhat7964 3 жыл бұрын
Keep going Angular 💯
@georgiyzhuravlev9350
@georgiyzhuravlev9350 3 жыл бұрын
Cool video, thanks!
@laurent356
@laurent356 3 жыл бұрын
Jeff is the best !!!
@MartinOckovsky
@MartinOckovsky 3 жыл бұрын
Thank you for your great work. Any resources for the style imports please?
@IceBreakerGamer
@IceBreakerGamer Жыл бұрын
Bro, this is fireship!
@andylib
@andylib 3 жыл бұрын
More fireship angular content 🔥
@airxperimentboom
@airxperimentboom 2 жыл бұрын
I love it ! I wish I watched your video earlier
@u83rh4xor
@u83rh4xor 3 жыл бұрын
Does anyone have recommendations for a good target bundle size? What's the optimal size we want to set our budgets to?
@vatsalyasinghi438
@vatsalyasinghi438 3 жыл бұрын
Hi please do a similar video on Ionic 5.. thanks !
@smitpatel4124
@smitpatel4124 3 жыл бұрын
its a fireship guy. Yayayayay
@Omryking
@Omryking 3 жыл бұрын
That voice from that dude from FireShip right?
@im.ajmalfaiz
@im.ajmalfaiz 3 жыл бұрын
Hi fireship
@FrietZakjeh
@FrietZakjeh 2 жыл бұрын
Heey, currently our app has been really slow in building. Does tree shaking also improve build performance, since you have less to build?
@g-luu
@g-luu 3 жыл бұрын
Fireship in the house🤪
@klutch4198
@klutch4198 3 жыл бұрын
HEY THAT VOICE REMINDS ME OF THIS GRANDMASTER I KNOW
@baaaanan180
@baaaanan180 3 жыл бұрын
what if one of my lazy loaded module use third dependency, e.g. quill.js. Right now I have this dependency inculded in my initial boundle, is there a way to incude it together with the lazy loaded module?
@vitale232
@vitale232 3 жыл бұрын
I've had good luck using a service to wrap a dependency that's dynamically imported - pdfmake in my case Just wrap dynamic import (like you would a lazy loaded module) on a class method and set the lib as a service property when it's loaded. Then, once the promise has resolved, your service can be used yo access the dep
@albijmadhikarmi4440
@albijmadhikarmi4440 3 жыл бұрын
could you also tell about domino and how to handle window is undefined with angular packages with angular universal and it's solutions. it been months and i am still not able to use ssr with packages i've used during my development
@narelehlohonolopapo9299
@narelehlohonolopapo9299 2 жыл бұрын
which VS theme are you using?
@sujoyinnovates
@sujoyinnovates 2 жыл бұрын
Hey man how to apply compression during build. You pointed out the problem, without suggesting any solution.
@sourishdutta9600
@sourishdutta9600 3 жыл бұрын
Jeff!
@Zweierkomplement
@Zweierkomplement Жыл бұрын
The main issue even if you follow this things is that Angular is MASSIVE. It currently makes 50% of our production bundle
@yijieli374
@yijieli374 2 жыл бұрын
In my project, I have very similar dependencies to what you have in this tutorial, except that I don't have Lodash. But when I use source-map-explore to generate the bundle analyze, I still see that Lodash is there, any idea where it's from?
@dimitritsikaridze6220
@dimitritsikaridze6220 2 жыл бұрын
it's probably because other dependencies depend on lodash
@SayantanDeyIshanz23
@SayantanDeyIshanz23 3 жыл бұрын
Wo! Isn't this Jeff?
@luismpcunha
@luismpcunha 3 жыл бұрын
How can we implement lazy loading at a component level instead of at the router level? It's common for a lot of components to not be routable. Also, even with specifying the packages, Firebase is still huge :/
@Afdac247
@Afdac247 3 жыл бұрын
Windmillcode has a video on that
@Afdac247
@Afdac247 3 жыл бұрын
m.kzfaq.info/get/bejne/g9GmY62pqdLOlpc.html
@009besim
@009besim 2 жыл бұрын
if you wanna feel like you are in the fireship channel just put playback speed to 1.25
@BonnerTheWeebcreator
@BonnerTheWeebcreator 2 жыл бұрын
Here after getting >WARNING/ERROR in budgets, maximum exceeded for initial
@theoneandonlysharan
@theoneandonlysharan 2 жыл бұрын
Hi, recently watching your videos, they are really amazing but I am facing one huge problem from past 6 months and hoping that you may solve that. Created a web app in Angular and its bit huge app and main concern is about getting light house score very low. Already optimised my code according to this video including modules lazyLoad etc. Still getting score around 56. Please help if you can. Any help would be appreciated. Thanks.
@LucioLeandro1
@LucioLeandro1 2 жыл бұрын
Make sure you are not running the test in development mode, ok? But if you so, configure angular to optimize in development mode as well.
@devman5813
@devman5813 Жыл бұрын
Why do we need pwa while anybody out there got internet connection? Can somebody tell me why do we need to waiste time on such a thing?
@ibnShafee
@ibnShafee Жыл бұрын
Is this Jeff of fireship?
@chrisfelix9065
@chrisfelix9065 2 жыл бұрын
Why does this sound like Fireship 🧐
@MrTungDev
@MrTungDev 3 жыл бұрын
`ng build --prod` June 2021 🙄
@tsheskoelmaximus3784
@tsheskoelmaximus3784 3 жыл бұрын
J A F A
@user-ms8ei9le7x
@user-ms8ei9le7x 3 жыл бұрын
@anirbandas12
@anirbandas12 2 жыл бұрын
The voice is very suspicious 🤔
@thesrinathkamath
@thesrinathkamath 3 жыл бұрын
is this @fireship who's speaking?
4 Runtime Performance Optimizations
18:32
Angular
Рет қаралды 99 М.
Change Detection in Angular - You Project Is 20x Slower!
15:16
Monsterlessons Academy
Рет қаралды 69 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 210 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 21 МЛН
Pleased the disabled person! #shorts
00:43
Dimon Markov
Рет қаралды 29 МЛН
UI Libraries Are Dying, Here's Why
13:28
Theo - t3․gg
Рет қаралды 288 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,5 МЛН
Dockerize an Angular Application using Nginx
56:41
Get Arrays
Рет қаралды 18 М.
Profiling Angular Applications
19:33
Angular
Рет қаралды 47 М.
Optimizing an Angular application - Minko Gechev
39:52
ng-conf
Рет қаралды 67 М.
What’s new in Angular v18
20:08
Angular
Рет қаралды 112 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 668 М.
Top 5 Angular Mistakes - You Must Know Them
10:32
Monsterlessons Academy
Рет қаралды 57 М.
How to analyze your JavaScript bundles
8:33
Chrome for Developers
Рет қаралды 24 М.
Лучший браузер!
0:27
Honey Montana
Рет қаралды 977 М.
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,3 МЛН
iPhone 15 Pro Max vs IPhone Xs Max  troll face speed test
0:33
low battery 🪫
0:10
dednahype
Рет қаралды 1,6 МЛН
تجربة أغرب توصيلة شحن ضد القطع تماما
0:56
صدام العزي
Рет қаралды 63 МЛН