From a66dab1d84fae251265f016e43138c0fca2a205a Mon Sep 17 00:00:00 2001 From: Guy Bedford Date: Sun, 7 Jan 2024 08:49:54 -0800 Subject: [PATCH] feat: support script fetchPriority (#407) --- src/es-module-shims.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/es-module-shims.js b/src/es-module-shims.js index b2092641..b4ce8b98 100755 --- a/src/es-module-shims.js +++ b/src/es-module-shims.js @@ -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')