[Suggestion]: preloadModule support for fetchpriority

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

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
78/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript, react
Domain
documentation

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.

Description

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

Dominant language
JavaScript
Stars
11.8k
Forks
7.9k
Avg merge
16h 6m
Merged PRs (30d)
7

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.

More from reactjs/react.dev

All issues in reactjs/react.dev

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.