You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: fetchPriority is not available in ReactDOM.preloadModule() #36834
ReactDOM.preload() supports a fetchPriority option, but ReactDOM.preloadModule() currently ignores
it, ruling out more granular preload optimization for ESM-based apps.
Details
Frameworks using native ES modules rely on modulepreload to discover client-side JavaScript
during server rendering. By default, these get a high priority in browsers.
When a page emits many JS files, they may compete with render-critical resources.
React already fixes this for bootstrap modules via fetchPriority="low" and also It also supports explicit priorities through ReactDOM.preload() and ReactDOM.preinit() but not via ReactDOM.preloadModule().
This would enable the optimization so @vitejs/plugin-rsc and others can pass fetchPriority: 'low' further down (see vitejs/vite-plugin-react#1264).
Proposed Addition
Extend PreloadModuleOptions with fetchPriority and forward this value to the generated link.
Activity
ankushhh28 commentedon Jun 24, 2026
@TheAlexLichter I'd like to work on this.