News for hackers. Stuff that matters.
Re:JavaScript Bloat in 2024 by guappa on Friday February 23, 2024 @04:32AM (#39478655)
It is parsed and loaded in memory, and not executed.
Re:JavaScript Bloat in 2024 by lifthrasiir on Friday February 23, 2024 @05:02AM (#39478852)
"Loaded" part is no longer true in major JS implementations (for example, [1]).

[1] https://v8.dev/blog/preparser

Re:JavaScript Bloat in 2024 by acdha on Friday February 23, 2024 @08:07AM (#39480079)
That’s a broader claim than that page supports. They describe how they avoiding fully generating the internal representation and JITing it, but clearly even unused code is taking up memory and CPU time so you’d want to review your app’s usage to make sure that it’s acceptable levels of work even on low-end devices and also that your coding style doesn’t defeat some of those optimizations.