Adrià Fontcuberta
1 min readJul 29, 2018

--

Hi Prashant, thanks for the response!

I tend to agree with you, and I usually use this pattern for, as you mentioned, large components or rarely-used ones.

However I’ve found that usually, Javascript is so slow to parse and compile that even with the smallest KB win is worth the network request!

Having said all that, I’d measure the impact of both strategies and then choose the best one.

Again, thanks for the feedback!

--

--

Adrià Fontcuberta

Words matter – Software product development, Front-end, UX, design, lean, agile and everything in between. https://afontcu.dev