dillon1000/react

Commit

[Float][Fizz]: Don't preload nomodule scripts (#26353)

We attempt to preload scripts that we detect during Fizz rendering
however when `noModule={true}` we should not because it will force
modern browser to fetch scripts they will never execute

Hoisted script resources already don't preload because we just emit the
resource immediately. This change currently on affects the preloads for
scripts that aren't hoistable
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom-bindings/src/server/ReactDOMServerFormatConfig.js ModifiedM packages/react-dom/src/__tests__/ReactDOMFloat-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…