wp-media / wp-rocket

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

Conflict between Perfmatters' Preload Critical Images and LazyLoad for Images #6439

Open webtrainingwheels opened 9 months ago

webtrainingwheels commented 9 months ago

Is your feature request related to a problem? Please describe. In some cases, when Perfmatters' Preload Critical Images is active along with WP Rocket's LazyLoad for Images, their preload code is removed from the cached page.

Per @DahmaniAdame

Perfmatters' buffer catches our buffer. Part of their exclusions matches our placeholder. Consequently, the image is excluded from their preload method.

We can't fix this on our end but we could:

  1. Involve Perfmatters devs
  2. Show a warning when we detect both features are active

Slack thread

chrislind commented 9 months ago

Thanks for the issue, I'm also having this problem!