Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Float][Fizz] Fix srcSet and sizes handling for suspensey img preloads #27217

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

gnoff
Copy link
Collaborator

@gnoff gnoff commented Aug 11, 2023

imageSrcSet should have been srcSet when referencing an img tag. imageSizes should have been sizes. This caused preloads for img tags using srcSet and sizes to incorrectly render as having a href only, dropping the srcSet and sizes part of the preload

…eSizes should have been sizes. This caused preloads for img tags using srcSet and sizes to incorrectly render as having a href only, dropping the srcSet and sizes part of the preload
@gnoff gnoff requested a review from sebmarkbage August 11, 2023 18:21
@facebook-github-bot facebook-github-bot added the React Core Team Opened by a member of the React Core Team label Aug 11, 2023
@react-sizebot
Copy link

Comparing: 533fc28...a3804e0

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 164.32 kB 164.32 kB = 51.76 kB 51.76 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 171.74 kB 171.74 kB = 53.98 kB 53.98 kB
facebook-www/ReactDOM-prod.classic.js = 567.12 kB 567.12 kB = 100.09 kB 100.09 kB
facebook-www/ReactDOM-prod.modern.js = 550.92 kB 550.92 kB = 97.25 kB 97.25 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against a3804e0

@gnoff gnoff merged commit 4e3618a into facebook:main Aug 11, 2023
@gnoff gnoff deleted the img-preload-fix branch August 11, 2023 18:27
github-actions bot pushed a commit that referenced this pull request Aug 11, 2023
#27217)

imageSrcSet should have been srcSet when referencing an img tag.
imageSizes should have been sizes. This caused preloads for img tags
using srcSet and sizes to incorrectly render as having a href only,
dropping the srcSet and sizes part of the preload

DiffTrain build for [4e3618a](4e3618a)
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Aug 12, 2023
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
facebook#27217)

imageSrcSet should have been srcSet when referencing an img tag.
imageSizes should have been sizes. This caused preloads for img tags
using srcSet and sizes to incorrectly render as having a href only,
dropping the srcSet and sizes part of the preload
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
#27217)

imageSrcSet should have been srcSet when referencing an img tag.
imageSizes should have been sizes. This caused preloads for img tags
using srcSet and sizes to incorrectly render as having a href only,
dropping the srcSet and sizes part of the preload

DiffTrain build for commit 4e3618a.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed React Core Team Opened by a member of the React Core Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants