Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or just don't even bundle if you can serve your users with ES6 modules.


Performance with native ESM isn't great since you get cascading requests, unless you have very shallow dependency trees.


They work fine for everything that doesn't require immediate response on first load, and even the there are ways to address that - for instance special pages for entry points and/or loading indicators.

For general performance you can cache the modules using a service worker.

In any case they are fine for most use cases.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: