wp-media / wp-rocket

Performance optimization plugin for WordPress
https://wp-rocket.me
GNU General Public License v2.0
700 stars 218 forks source link

Add control over LCP/ATF elements to backend for support to update #6692

Open DahmaniAdame opened 5 months ago

DahmaniAdame commented 5 months ago

Is your feature request related to a problem? Please describe.

To reduce what is required to fix new potential LCP elements markup, and to reduce the waiting time for all uses to access the update, we need to add LCP/ATF elements candidates to the backend and be part of the dynamic lists updates.

https://github.com/wp-media/wp-rocket/blob/60749b7f9a7c390bf9de979739dee632575ad585/inc/Engine/Media/AboveTheFold/Frontend/Controller.php#L492-L503

Controlling filter: rocket_atf_elements

Describe the solution you'd like N/A

Describe alternatives you've considered Support currently use helper plugins as a temporary workaround until an update adds the new element.

Additional context Elements need to be confirmed by T2s.

MathieuLamiot commented 5 months ago

The initial goal of restricting the number of elements searched was to limit resource consumption of the script. Now, it looks like we want to add a lot of element types?