Skip to content

Conversation

sebmarkbage
Copy link
Collaborator

Stacked on #34510.

The "Commit" phase for a View Transition starts before the snapshot phase (before mutation) and then stretches into the async gap of startViewTransition, encompasses the mutation phase inside of its update callback and finally the layout phase.

However, between the mutation phase and the layout phase we may suspend the start of the view transition on fonts and/or images. In that case we now split the Commit phase into first one before we suspend and then we log "Waiting for Images and/or Fonts" and then another Commit phase around the layout effects.

Screenshot 2025-09-16 at 11 37 26 PM

@meta-cla meta-cla bot added the CLA Signed label Sep 17, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Sep 17, 2025
@react-sizebot
Copy link

react-sizebot commented Sep 17, 2025

Comparing: 84af908...a954a6d

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 = 534.28 kB 534.28 kB = 94.31 kB 94.31 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 = 663.61 kB 663.59 kB = 116.99 kB 116.98 kB
facebook-www/ReactDOM-prod.classic.js = 687.53 kB 687.51 kB = 121.02 kB 121.01 kB
facebook-www/ReactDOM-prod.modern.js = 677.95 kB 677.93 kB = 119.37 kB 119.36 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
facebook-www/ReactReconciler-dev.modern.js +0.25% 868.52 kB 870.66 kB +0.13% 134.50 kB 134.67 kB
oss-experimental/react-reconciler/cjs/react-reconciler.profiling.js +0.25% 548.80 kB 550.14 kB +0.20% 85.86 kB 86.03 kB
facebook-www/ReactReconciler-dev.classic.js +0.24% 877.76 kB 879.89 kB +0.13% 136.23 kB 136.41 kB
oss-experimental/react-reconciler/cjs/react-reconciler.development.js +0.24% 838.12 kB 840.14 kB +0.17% 131.01 kB 131.23 kB
facebook-www/ReactDOM-profiling.modern.js +0.22% 754.75 kB 756.43 kB +0.10% 129.89 kB 130.02 kB
facebook-www/ReactDOM-profiling.classic.js +0.22% 762.85 kB 764.53 kB +0.10% 131.27 kB 131.40 kB
react-native/implementations/ReactFabric-profiling.fb.js +0.22% 457.71 kB 458.70 kB +0.12% 76.55 kB 76.65 kB
facebook-www/ReactART-dev.modern.js +0.21% 750.80 kB 752.41 kB +0.11% 117.22 kB 117.35 kB
oss-experimental/react-dom/cjs/react-dom-profiling.profiling.js +0.21% 731.69 kB 733.25 kB +0.18% 126.97 kB 127.19 kB
react-native/implementations/ReactNativeRenderer-profiling.fb.js +0.21% 464.19 kB 465.17 kB +0.12% 77.47 kB 77.57 kB
facebook-www/ReactART-dev.classic.js +0.21% 760.32 kB 761.93 kB +0.11% 118.99 kB 119.12 kB
react-native/implementations/ReactFabric-dev.fb.js +0.21% 763.71 kB 765.32 kB +0.06% 121.40 kB 121.48 kB
oss-experimental/react-art/cjs/react-art.development.js +0.21% 708.05 kB 709.53 kB +0.08% 111.86 kB 111.95 kB
react-native/implementations/ReactNativeRenderer-dev.fb.js +0.21% 772.29 kB 773.90 kB +0.06% 122.63 kB 122.70 kB

Generated by 🚫 dangerJS against a954a6d

@sebmarkbage sebmarkbage merged commit ad578aa into facebook:main Sep 18, 2025
241 checks passed
github-actions bot pushed a commit that referenced this pull request Sep 18, 2025
Stacked on #34510.

The "Commit" phase for a View Transition starts before the snapshot
phase (before mutation) and then stretches into the async gap of
`startViewTransition`, encompasses the mutation phase inside of its
update callback and finally the layout phase.

However, between the mutation phase and the layout phase we may suspend
the start of the view transition on fonts and/or images. In that case we
now split the Commit phase into first one before we suspend and then we
log "Waiting for Images and/or Fonts" and then another Commit phase
around the layout effects.

<img width="897" height="119" alt="Screenshot 2025-09-16 at 11 37 26 PM"
src="https://github.com/user-attachments/assets/0fe21388-bb48-4456-a594-62227d12d9b7"
/>

DiffTrain build for [ad578aa](ad578aa)
github-actions bot pushed a commit that referenced this pull request Sep 18, 2025
Stacked on #34510.

The "Commit" phase for a View Transition starts before the snapshot
phase (before mutation) and then stretches into the async gap of
`startViewTransition`, encompasses the mutation phase inside of its
update callback and finally the layout phase.

However, between the mutation phase and the layout phase we may suspend
the start of the view transition on fonts and/or images. In that case we
now split the Commit phase into first one before we suspend and then we
log "Waiting for Images and/or Fonts" and then another Commit phase
around the layout effects.

<img width="897" height="119" alt="Screenshot 2025-09-16 at 11 37 26 PM"
src="https://github.com/user-attachments/assets/0fe21388-bb48-4456-a594-62227d12d9b7"
/>

DiffTrain build for [ad578aa](ad578aa)
sebmarkbage added a commit that referenced this pull request Sep 20, 2025
Stacked on #34511.

We currently log all Suspended Commit as "Suspended on Images or CSS"
but it can really be other reasons too now. Like waiting on the previous
View Transition. This allows the host config configure this reason.

Now when one animation starts before another one finishes we log that as
"Waiting for the previous Animation".

<img width="592" height="257" alt="Screenshot 2025-09-17 at 11 53 45 PM"
src="https://github.com/user-attachments/assets/817af8b5-37ae-46d8-bfd1-cd3fc637f3f3"
/>
github-actions bot pushed a commit that referenced this pull request Sep 20, 2025
Stacked on #34511.

We currently log all Suspended Commit as "Suspended on Images or CSS"
but it can really be other reasons too now. Like waiting on the previous
View Transition. This allows the host config configure this reason.

Now when one animation starts before another one finishes we log that as
"Waiting for the previous Animation".

<img width="592" height="257" alt="Screenshot 2025-09-17 at 11 53 45 PM"
src="https://github.com/user-attachments/assets/817af8b5-37ae-46d8-bfd1-cd3fc637f3f3"
/>

DiffTrain build for [b204edd](b204edd)
github-actions bot pushed a commit that referenced this pull request Sep 20, 2025
Stacked on #34511.

We currently log all Suspended Commit as "Suspended on Images or CSS"
but it can really be other reasons too now. Like waiting on the previous
View Transition. This allows the host config configure this reason.

Now when one animation starts before another one finishes we log that as
"Waiting for the previous Animation".

<img width="592" height="257" alt="Screenshot 2025-09-17 at 11 53 45 PM"
src="https://github.com/user-attachments/assets/817af8b5-37ae-46d8-bfd1-cd3fc637f3f3"
/>

DiffTrain build for [b204edd](b204edd)
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