Skip to content

Polyfills split legacy and modern browsers #13454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rickvandermey opened this issue Jan 17, 2019 · 2 comments
Closed

Polyfills split legacy and modern browsers #13454

rickvandermey opened this issue Jan 17, 2019 · 2 comments

Comments

@rickvandermey
Copy link

rickvandermey commented Jan 17, 2019

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Command (mark with an x)

- [x] new

Desired functionality

When creating an Angular App with the NG command, i would love to see a split between polyfills for modern browsers and legacy browsers. While building the application the legacy browsers should read all scripts and modern browsers should skip the legacy bundle because of the nomodule attr in scripts.

<script nomodule src="/polyfills-legacy.js"></script>
<script src="/polyfills.js"></script>

For optimization the angular application, this would improve low-end devices with modern browsers. this would be a 35kb vs 13.5kb gzipped difference for modern browsers

@alan-agius4
Copy link
Collaborator

This has been implemented and already available in the current beta version.

See: #13403

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants