Skip to content

Add fetchPriority support#73

Merged
camsong merged 2 commits intocamsong:masterfrom
trudbot:master
Feb 27, 2026
Merged

Add fetchPriority support#73
camsong merged 2 commits intocamsong:masterfrom
trudbot:master

Conversation

@trudbot
Copy link
Contributor

@trudbot trudbot commented Sep 18, 2025

resolved #70

This change makes use of the fetchPriority attribute on <script> to control the request priority. The attribute is already widely supported in modern browsers (see MDN), and it has no adverse effect in browsers that do not support it.

camsong pushed a commit that referenced this pull request Feb 27, 2026
- fix: crossorigin attribute now correctly defaults to 'anonymous' instead of non-standard 'true'; also accepts explicit string values like 'use-credentials'
- feat: add fetchPriority option ('high' | 'low' | 'auto') for script request priority control, thanks to @trudbot (#73)
- chore: add types field to package.json for correct npm TS badge display, thanks to @karlhorky (#71)
@camsong
Copy link
Owner

camsong commented Feb 27, 2026

Thanks @trudbot! Your fetchPriority implementation has been incorporated into v1.4.0 (released today). The logic is identical to your PR — only merged directly to keep the commit history clean. Really appreciate the contribution!

@camsong camsong closed this Feb 27, 2026
@camsong camsong reopened this Feb 27, 2026
camsong added a commit that referenced this pull request Feb 27, 2026
- fix: crossorigin attribute now correctly defaults to 'anonymous' instead of non-standard 'true'; also accepts explicit string values like 'use-credentials'
- feat: add fetchPriority option ('high' | 'low' | 'auto') for script request priority control, thanks to @trudbot (#73)
- chore: add types field to package.json for correct npm TS badge display, thanks to @karlhorky (#71)
@camsong camsong merged commit 7d71cc3 into camsong:master Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a fetchPriority option

2 participants