Skip to content

[Fizz] Block on Suspensey Fonts during reveal #33342

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

sebmarkbage
Copy link
Collaborator

@sebmarkbage sebmarkbage commented May 22, 2025

This is the same technique we do for the client except we don't check whether this is newly created font loading to keep code small.

Unfortunately, we can't use this technique for Suspensey images. They'll need to block before we call startViewTransition in a separate refactor. This is due to a bug in Chrome where img.decode() doesn't resolve until startViewTransition does.

@sebmarkbage sebmarkbage requested review from gnoff and eps1lon May 22, 2025 19:52
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label May 22, 2025
@react-sizebot
Copy link

Comparing: 8ce15b0...1061fda

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.js = 6.68 kB 6.68 kB = 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 529.83 kB 529.83 kB = 93.52 kB 93.52 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 651.62 kB 651.62 kB = 114.80 kB 114.80 kB
facebook-www/ReactDOM-prod.classic.js = 675.87 kB 675.87 kB = 118.93 kB 118.93 kB
facebook-www/ReactDOM-prod.modern.js = 666.15 kB 666.15 kB = 117.31 kB 117.31 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react-dom/unstable_server-external-runtime.js +1.81% 15.59 kB 15.87 kB +1.75% 3.65 kB 3.71 kB

Generated by 🚫 dangerJS against 1061fda

@sebmarkbage sebmarkbage merged commit c0464ae into facebook:main May 23, 2025
246 checks passed
github-actions bot pushed a commit that referenced this pull request May 23, 2025
This is the same technique we do for the client except we don't check
whether this is newly created font loading to keep code small.

Unfortunately, we can't use this technique for Suspensey images. They'll
need to block before we call `startViewTransition` in a separate
refactor. This is due to a bug in Chrome where `img.decode()` doesn't
resolve until `startViewTransition` does.

DiffTrain build for [c0464ae](c0464ae)
github-actions bot pushed a commit to code/lib-react that referenced this pull request May 23, 2025
This is the same technique we do for the client except we don't check
whether this is newly created font loading to keep code small.

Unfortunately, we can't use this technique for Suspensey images. They'll
need to block before we call `startViewTransition` in a separate
refactor. This is due to a bug in Chrome where `img.decode()` doesn't
resolve until `startViewTransition` does.

DiffTrain build for [c0464ae](facebook@c0464ae)
github-actions bot pushed a commit to code/lib-react that referenced this pull request May 23, 2025
This is the same technique we do for the client except we don't check
whether this is newly created font loading to keep code small.

Unfortunately, we can't use this technique for Suspensey images. They'll
need to block before we call `startViewTransition` in a separate
refactor. This is due to a bug in Chrome where `img.decode()` doesn't
resolve until `startViewTransition` does.

DiffTrain build for [c0464ae](facebook@c0464ae)
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.

4 participants