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!

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

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store