reactjs / reactjs/react.dev

[Suggestion]: preloadModule support for fetchpriority

Open Beginner friendly
#8,498 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type: documentation
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.