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

They now have two production build variations (I’m guessing two Webpack config):

modern: ES6+, less polyfill

legacy: ES5, more polyfill

The appropriate variation is served by detecting browser’s version from the User-Agent string



Note: since v8.0, Angular comes with built-in differential loading and will do all the heavy lifting to achieve exactly that.

https://angular.io/guide/deployment#differential-loading


update: a Twitter engineer explained how they implemented it in greater detail

https://twitter.com/charliecroom/status/1291478104016289799




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

Search: