3 ms·
It used to be terrible due to long parsing time but over the past 5 years or so, things have really improved, even more so in v8 recently [1]. Nowadays it's saf
by asadkn 6y ago
It used to be terrible due to long parsing time but over the past 5 years or so, things have really improved, even more so in v8 recently [1]. Nowadays it's safe to just focus on the overall package size. And once it goes over a certain size budget (that's over 150KB gzipped as my personal preference) split it up and ideally use the PRPL pattern.
[1]: https://v8.dev/blog/cost-of-javascript-2019 https://v8.dev/blog/cost-of-javascript-2019