[Suggestion]: preloadModule support for fetchpriority
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 11.8k
- Forks
- 7.9k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 11
Description
Summary
fetchpriority was added as a support option as part of https://github.com/react/react/pull/36835, so docs should be updated to include it.
Page
https://react.dev/reference/react-dom/preloadModule#reference
Details
Add an options value for fetchpriority
something like :
fetchPriority: a string. Suggests a [relative priority for fetching](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Attributes/fetchpriority) the script. Its possible values are auto, high, and low.
I am not sure if this needs a canary/experimental badge because this is a very new change
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the preloadModule reference page at react.dev/reference/react-dom/preloadModule#reference and review how its options are documented. Add the fetchPriority option with its possible values and linked priority explanation; the work is done when the rendered reference includes this entry and the experimental-status question is resolved consistently with the page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100