wp-media / wp-rocket

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

ATF optimization and lazyload exclusion is not always applied when using a CDN #6652

Open MathieuLamiot opened 3 months ago

MathieuLamiot commented 3 months ago

Context Take-away from the exploratory testing (Slack) and reports. Applying a CDN changes the URL of images, preventing us from matching them correctly between what we store in the DB and when processing the HTML in WP Rocket plugin.

As a result: the fetchpriority might not be applied to the image tag, and the image tag might still be lazyloaded.

There are several scenarios that can create the issue:

Expected behavior TBD

Acceptance Criteria TBD

Additional information TBD

DahmaniAdame commented 3 months ago

Maybe just strip the domain and search for the asset's relative path for a partial match when optimizing ATF?

BLLDJ commented 1 month ago

Do you have a roadmap to solve this issue? It has a significant impact on performance. Everyone is using a CDN, so it is insane not to have this feature available for a plugin like WP Rocket. Thanks for your clarification about a reasonable timeline.