Skip to content

Bug: Random preloads added for images #27910

Closed
@muteor

Description

@muteor

React version: 18.3.0-canary-c29ca23af-20231205

Steps To Reproduce

  1. Render SSR app that has images in its tree using renderToString or renderToPipeableStream

Link to code example:

The current behavior

image

The expected behavior

To not insert preloads randomly.

Note that there is difference between renderToString and renderToPipeableStream, renderToString the preloads appear inside root and renderToPipeableStream they appear in head.

Sorry this is a bit of a question rather than bug report maybe, I have searched around and cannot see any mention of auto-preloading images but I assume there must be something going on that I have missed.

I was able to fix by using 18.3.0-canary-493f72b0a-20230727.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions