Skip to content
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

Avoid serving legacy JavaScript to modern browsers #74

Open
DanielGarzaB opened this issue Nov 29, 2021 · 0 comments
Open

Avoid serving legacy JavaScript to modern browsers #74

DanielGarzaB opened this issue Nov 29, 2021 · 0 comments

Comments

@DanielGarzaB
Copy link

When checking https://pagespeed.web.dev/ I get an warning which delays my Total time blocking about 0.15 seconds:

  • Avoid serving legacy JavaScript to modern browsers - 0.15 s

Polyfills and transforms enable legacy browsers to use new JavaScript features. However, many aren't necessary for modern browsers. For your bundled JavaScript, adopt a modern script deployment strategy using module/nomodule feature detection to reduce the amount of code delivered to modern browsers, while retaining support for legacy browsers. Learn more TBT

And it's caused by: Array.prototype.forEach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant