Skip to content

Commit

Permalink
feat: support script fetchPriority (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Jan 7, 2024
1 parent a6fb8d5 commit a66dab1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/es-module-shims.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,8 @@ function getFetchOpts (script) {
fetchOpts.integrity = script.integrity;
if (script.referrerPolicy)
fetchOpts.referrerPolicy = script.referrerPolicy;
if (script.fetchPriority)
fetchOpts.priority = script.fetchPriority;
if (script.crossOrigin === 'use-credentials')
fetchOpts.credentials = 'include';
else if (script.crossOrigin === 'anonymous')
Expand Down

0 comments on commit a66dab1

Please sign in to comment.