Skip to content

Conversation

@westonruter
Copy link
Member

@westonruter westonruter commented Oct 18, 2024

See discussion in #1596 (comment)

We can only safely lazy-load anything once we have collected URL metrics for both mobile and desktop. If we've only collected URL metrics for mobile and there is a lazy-loadable element which is not visible, it would be an error to lazy-load it if that element does get displayed on a larger viewport (e.g. desktop).

@westonruter westonruter added [Plugin] Embed Optimizer Issues for the Embed Optimizer plugin (formerly Auto Sizes) [Plugin] Image Prioritizer Issues for the Image Prioritizer plugin (dependent on Optimization Detective) labels Oct 18, 2024
@westonruter westonruter added this to the image-prioritizer n.e.x.t milestone Oct 18, 2024
@github-actions
Copy link

github-actions bot commented Oct 18, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <[email protected]>
Co-authored-by: swissspidy <[email protected]>
Co-authored-by: felixarntz <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Base automatically changed from fix/lazy-load-videos to trunk October 18, 2024 07:26
@swissspidy swissspidy added the [Type] Enhancement A suggestion for improvement of an existing feature label Oct 18, 2024
Co-authored-by: Pascal Birchler <[email protected]>
@westonruter westonruter enabled auto-merge October 18, 2024 14:34
@westonruter westonruter changed the title Avoid lazy-loading images and embeds unless there are URL metrics for both mobile and desktop Avoid lazy-loading images and embeds unless there are URL Metrics for both mobile and desktop Oct 18, 2024
@westonruter westonruter disabled auto-merge October 18, 2024 14:41
@westonruter westonruter merged commit dd67b09 into trunk Oct 18, 2024
@westonruter westonruter deleted the update/image-and-embed-lazy-load-hardening branch October 18, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Embed Optimizer Issues for the Embed Optimizer plugin (formerly Auto Sizes) [Plugin] Image Prioritizer Issues for the Image Prioritizer plugin (dependent on Optimization Detective) [Type] Enhancement A suggestion for improvement of an existing feature

Projects

Status: Done 😃

Development

Successfully merging this pull request may close these issues.

4 participants