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

Should SVG's <script> element support the fetchpriority attribute analogous to HTML's <script> element? #916

Open
mbrodesser-Igalia opened this issue Jun 26, 2023 · 2 comments

Comments

@mbrodesser-Igalia
Copy link

Relevant spec section: https://svgwg.org/svg2-draft/interact.html#ScriptElement
Related HTML spec section: https://html.spec.whatwg.org/multipage/scripting.html#attr-script-fetchpriority

Might belong to #905.

@pmeenan
Copy link

pmeenan commented Jun 28, 2023

As things stand right now, I don't know that it makes a lot of sense for there to be a fetchpriority on the SVG script element. As far as I can tell, it doesn't support async or defer yet so the SVG scripts are blocking and there isn't really a use case for developers to be able to adjust the priority.

If async or defer (or module support) is ever added to SVG script then it might make sense at that point to consider if it also makes sense to add fetchpriority support as well.

@longsonr
Copy link

@pmeenan Firefox will support async, defer and module from version 117. The SVG 2 specification does mention that async and defer should be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants