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

Performance: consider implementing resource preloading #25416

Open
jeherve opened this issue Aug 9, 2022 · 1 comment
Open

Performance: consider implementing resource preloading #25416

jeherve opened this issue Aug 9, 2022 · 1 comment
Labels
[Focus] Performance [Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Search A plugin to add an instant search modal to your site to help visitors find content faster. [Pri] Normal [Type] Feature Request

Comments

@jeherve
Copy link
Member

jeherve commented Aug 9, 2022

Impacted plugin

Jetpack, Backup, Boost, Search

What

WP Core just added options to handle resource preloading. This may be a good opportunity to review our usage of preloading and resource hints in Jetpack plugins.

How

This was just added to WP Core, and will ship with the upcoming version of WordPress, v. 6.1, in November 2022:

https://core.trac.wordpress.org/changeset/53846

It would be nice if we added support for it in our plugins.

Related issues:

Previous art on this: #16305

@github-actions github-actions bot added [Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Search A plugin to add an instant search modal to your site to help visitors find content faster. labels Aug 9, 2022
@westonruter
Copy link
Contributor

As I just wrote in #20566 (comment):

The Optimization Detective plugin is designed as a plugin dependency which other plugins can extend. For example, Image Prioritizer and Embed Optimizer both leverage Optimization Detective to prioritize loading LCP images, correctly apply lazy-loading, reserve space for layout-shifting embeds, and so on. All of this code is part of the the WordPress/performance repo which is intended to be an incubator for feature plugins that eventually get merged into core. Optimization Detective, Image Prioritizer, and Embed Optimizer are also all designed so that they can be embedded inside other plugins as a library, so Jetpack Boost could distribute the Optimization Detective code without having to install a separate plugin dependency. Nevertheless, with Jetpack's recent push toward decoupling plugins, perhaps Boost would opt to install these plugins separately.

Optimization Detective enables the use of client-side metrics to discover what the LCP element is and which elements are in the initial viewport across mobile, tablet, and desktop--enabling automatic discovery of precisely the resources which should be get preload and preconnect links.

I'm happy to collaborate!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Performance [Plugin] Backup A plugin that allows users to save every change and get back online quickly with one-click restores. [Plugin] Boost A feature to speed up the site and improve performance. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Search A plugin to add an instant search modal to your site to help visitors find content faster. [Pri] Normal [Type] Feature Request
Projects
None yet
Development

No branches or pull requests

2 participants