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

feat: support modulepreload polyfill #141

Merged
merged 2 commits into from Jun 29, 2021
Merged

feat: support modulepreload polyfill #141

merged 2 commits into from Jun 29, 2021

Conversation

guybedford
Copy link
Owner

This adds comprehensive support for polyfilling <link rel="modulepreload" />. In addition this PR fixes up the fetch options handling to provide support for exact crossorigin, referrerpolicy and integrity attributes on both module scripts and preload tags.

This enables:

  • Preloading modulepreload for shimmed and non-shimmed modes in non Chromium browsers
  • Integrity for all modules via modulepreload shimmed and unshimmed, polyfilled and unpolyfilled in all browsers.

@guybedford guybedford merged commit c559375 into main Jun 29, 2021
@guybedford guybedford deleted the modulepreload branch June 29, 2021 18:05
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

Successfully merging this pull request may close these issues.

None yet

1 participant