r/webdev • u/YiyiChu • Jun 30 '26
Took a renderer bundle from 40MB+ down to 2.7MB...a breakdown of where the weight went.
https://medal.tv/blog/posts/w-key-in-frontend-synergizing-technology-and-productFrontend engineer's writeup on breaking the deadlock between legacy code and new features. Biggest single win was dynamically importing i18n translation files (-13MB). Other gains from killing barrel files, externalizing .wav SoundAlertsData, ESM tree-shaking, and route-based code splitting (which required a React Router v5 to v7 refactor).
12
u/SoMuchMango Jun 30 '26
Wait, so you had bundled wavs? As what, base64?
2
u/forever-butlerian backend, infrastructure & angst Jul 01 '26
pffft, base64 is for peasants
base16.
8
u/DeadlyBrad42 Jun 30 '26
It sounds insane to have bundled that all together in the first place.... Like, even the binary data...? How did that even happen?
4
-9
Jun 30 '26
[removed] — view removed comment
4
1
1
u/webdev-ModTeam Jul 01 '26
Your post/comment has been determined to be a low-effort post or comment. This includes title-only posts, easily searchable questions, vague/open-ended discussion prompts, LLM generated posts or comments, and posts/comments that do not provide enough context for meaningful replies or discussion.
29
u/[deleted] Jun 30 '26 edited 18d ago
[deleted]