How to make your JavaScript Bundle Smaller

How to make your JavaScript Bundle Smaller

Beyond Fireship

1 год назад

134,371 Просмотров

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


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

Muhamadamin Ibragimov
Muhamadamin Ibragimov - 01.01.2023 19:52

Webpack also can lazy load)

Ответить
Erick Anderson
Erick Anderson - 03.11.2022 05:11

Waiting for the programmer humour channel to be created.

Ответить
Than Htut Zaw
Than Htut Zaw - 27.10.2022 04:18

Why I have to wait 4s to get data from Firestore in React. It is react problem or Country too far Problem?

Ответить
Ghafoor 265
Ghafoor 265 - 01.10.2022 20:30

Complicated

Ответить
komakaze komakaze
komakaze komakaze - 26.09.2022 17:42

Did the video give the impression that only Vite could do dynamic imports? Or am I missing some nuance? I do like Vite, just curious.

Ответить
Della Vita
Della Vita - 25.09.2022 06:55

Maybe bundled size is not that matter, Sometime your bundled size for all of your apps smaller than your single image in your site 😂

Ответить
ikarusasas
ikarusasas - 19.09.2022 18:19

Backend bundles? Anyone? I really like microbundle for that purpose but it is slow af. SWC and Rust/Go based tooling is what I hope to use one day

Ответить
WINGMAN N
WINGMAN N - 18.09.2022 17:07

omaigod zet iz sou smart

Ответить
Tubular Animator
Tubular Animator - 18.09.2022 01:02

I just subscribed with all notifications, liked, commented, and shared.
I also watched the whole video.
It was enjoyable to consume.

Ответить
Tubular Animator
Tubular Animator - 18.09.2022 01:01

I just subscribed, liked, commented, and shared. I also watched the whole video.

Ответить
hashtagPoundsign
hashtagPoundsign - 16.09.2022 00:20

The classic "wait for them to log in, then hit them with megabytes" strategy. Jokes aside, thank you for this!!!

Ответить
Anweshan Roy Chowdhury
Anweshan Roy Chowdhury - 15.09.2022 22:38

I cannot emphasize how important & rightly timed this video is for me. I am literally working on a project, and embarrassing it may sound the chunks are oversized. Saw this video and my bundle sizes are literally the smallest in the team.

Your hard work is commendable! Thanks Jeff... Looking forward more to you reading my mind 😄

Ответить
John Mukendi
John Mukendi - 15.09.2022 17:46

please give us your instagram id for further references,doubts and for clarification..

Ответить
Miauuuu of cat
Miauuuu of cat - 15.09.2022 13:12

By now I’m a chunk 😘

Ответить
AVJ VFX
AVJ VFX - 15.09.2022 01:28

Yesssss!!!

Ответить
Renz
Renz - 14.09.2022 20:05

thanks helpful vid

Ответить
Jeuri
Jeuri - 14.09.2022 12:00

Maybe review yet another frontend framework , like nextja but uses vite as the build tool

Ответить
Stephen Gillie
Stephen Gillie - 14.09.2022 01:25

A benefit to browser-side frameworks is that the whole package is very easy to cache. Why load anything at all? Offering Overview is 676 bytes per page load after the first load, and could be slimmed down more by moving the inline JS back to its own file.

Ответить
Parthipan Kalayini
Parthipan Kalayini - 13.09.2022 21:34

New Next js logo 🤩😅

Ответить
Nikola Andreev
Nikola Andreev - 13.09.2022 17:51

Kak e brat

Ответить
Mooshy
Mooshy - 13.09.2022 17:30

I’m the lead at the company I work and that hangover clip had me rofln’

Ответить
Chrysippus
Chrysippus - 13.09.2022 16:58

At some point you have to wonder what kind of functionality requires so much Javascript.

Ответить
Fate Riddle
Fate Riddle - 13.09.2022 16:38

wait, what is this channel? If it's still fireship and still short videos, what's the word beyond for?

Ответить
Dominican Frankster
Dominican Frankster - 13.09.2022 15:02

I remember going through code splitting hell on my website. I managed to get the 100 on pagespeeds, but lort was it a pain. I wish Vite was around then. Astro islands are doing it for me right now as I rebuild.

Ответить
Victor-Marius Pîrvan
Victor-Marius Pîrvan - 13.09.2022 11:10

Wait....what! Isn't firebase used for databases? Why would you use it on the client side? Isn't that a security concern? Accessing the database directly from the client side??

Ответить
Anj
Anj - 13.09.2022 09:43

Or... stop using big unnecessary frameworks and libraries.

Web development is really bloated and we need to move it into some kind of diet. Stop using over complicated dependencies just because of their marketing bullshit and do things yourself.

Ответить
Ahmetcan Aksu
Ahmetcan Aksu - 13.09.2022 09:20

Im loving this channell

Ответить
Furz
Furz - 13.09.2022 08:23

Just dont use firebase in the frontend make an api for interacting with the firebase Code running only in your server

Ответить
J Garza Rebel
J Garza Rebel - 13.09.2022 07:14

❤🌟

Ответить
Atalocke
Atalocke - 13.09.2022 06:56

KiB is kibibytes

Ответить
Lucas R
Lucas R - 13.09.2022 05:45

Im so glad I work on the backend

Ответить
Landon
Landon - 13.09.2022 05:27

Just wondering, don't dynamic imports eliminate the bundler's ability to statically analyze what code is used and therefore eliminate tree shaking for that entire import? From my understanding of tree shaking, it only works for es2015 style imports to statically analyze what is used and eliminate dead code from the bundle. If you are only using one functionality from firebase, tree shaking should only include the code for that one functionality, but if you import it dynamically then it has to include the entire package code in your final bundle. Am I missing something here?

Ответить
Cyranek
Cyranek - 13.09.2022 05:21

too much work. make it a pwa and force the user to download everything. not my problem. 😎

Ответить
Abdur Rasheed
Abdur Rasheed - 13.09.2022 04:20

Is there any way to get same result in Angular?

Ответить
Pawan Poudel
Pawan Poudel - 13.09.2022 03:57

You should provide caption

Ответить
Danilo Bassi
Danilo Bassi - 13.09.2022 01:53

God = Evan You

Ответить
Norbertsson
Norbertsson - 13.09.2022 01:20

Stock Rollup can do the same. You don't need Vite for this.

Ответить
NEAR DREAM UNITY
NEAR DREAM UNITY - 13.09.2022 00:39

I used to wonder why people did "code golf" exercises. Now I know why. A little "code golf" is something more people should practice. You'd be surprised how few bytes may actually be necessary to implement your functionality.

Ответить
jomy10
jomy10 - 13.09.2022 00:22

Everybody loves vite so much, but their docs are so aweful. I must be missing something

Ответить
bibah bibah
bibah bibah - 13.09.2022 00:17

in react u can do it with lazy import whit out vite

Ответить
re::liable
re::liable - 12.09.2022 23:52

Really want to get started with Vite now

Ответить
Ezra
Ezra - 12.09.2022 23:18

Thanks

Ответить
Elephant
Elephant - 12.09.2022 23:04

It is time to CRIMINALLY CHARGE Trump, period!

Ответить
hmmm
hmmm - 12.09.2022 22:54

are you in my house?
I'm literally working in a project with vite using the react template and firebase
And i had the exact same problem 🤯
thank you so much for the amazing content

Ответить
Kuba K
Kuba K - 12.09.2022 22:38

The best thing about it is that these days you can get away with having 10MB js file that's needed for a website to load and it still will work perfectly fine and the users won't notice any difference so pushing to decrease the file sizes is completely pointless. A 1MB decrease for example is nothing.

Ответить
moitp2
moitp2 - 12.09.2022 22:33

Meanwhile Angular : you can do that for quite a while now :p

Ответить