-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Closed
Description
Feature Request
Ability to set fetchPriority attribute on script tags.
Webpack doesn't offer any way to set fetchPriority attribute on script tags that are managed/added by webpack.
I propose adding output.scriptFetchPriorty option with values boolean = false, string: 'high' | 'low' | 'auto'
When !== false, it is used in LoadScriptRuntimeModule to add the attribute to the script tag.
Relevant links
https://html.spec.whatwg.org/multipage/scripting.html#the-script-element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script#browser_compatibility
Reactions are currently unavailable