Skip to content

Downgrade offscreen Fabric image requests to prefetch#56976

Closed
sammy-SC wants to merge 1 commit into
facebook:mainfrom
sammy-SC:export-D106074485
Closed

Downgrade offscreen Fabric image requests to prefetch#56976
sammy-SC wants to merge 1 commit into
facebook:mainfrom
sammy-SC:export-D106074485

Conversation

@sammy-SC
Copy link
Copy Markdown
Contributor

Summary:
changelog: [internal]

Use Fabric layout data to classify image shadow nodes as visible or offscreen on Apple platforms. Offscreen image requests now use ImageRequestPriority::Prefetch, which is bridged to the existing RCTImageLoaderPriorityPrefetch API, while visible images stay at Immediate. The new React Native feature flag defaults to false until app-specific gating wires it up.

Reviewed By: javache

Differential Revision: D106074485

Summary:
changelog: [internal]

Use Fabric layout data to classify image shadow nodes as visible or offscreen on Apple platforms. Offscreen image requests now use `ImageRequestPriority::Prefetch`, which is bridged to the existing `RCTImageLoaderPriorityPrefetch` API, while visible images stay at `Immediate`. The new React Native feature flag defaults to `false` until app-specific gating wires it up.

Reviewed By: javache

Differential Revision: D106074485
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 27, 2026

@sammy-SC has exported this pull request. If you are a Meta employee, you can view the originating Diff in D106074485.

@meta-codesync meta-codesync Bot closed this in 5fbcc6b May 27, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 27, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 27, 2026

This pull request has been merged in 5fbcc6b.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @sammy-SC in 5fbcc6b

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants