Skip to content

"fetchPriority" for script tags #16989

@aboktor

Description

@aboktor

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions