wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
71 stars 25 forks source link

Fixes #609 conflict with wp cloudflare super page cache #650

Closed joejoe04 closed 2 years ago

joejoe04 commented 2 years ago

closes #609

When both Imagify and WP Cloudflare Super Page Cache plugins are enabled at the same time, the Bulk Optimization will not start when "Imagif'em All' is pressed. This was due to the fact they both used the same Sweet Alert script and this caused a conflict.

This fixes that conflict by checking if the WP Cloudflare Super Page Cache Sweet Alert script is enqueued, and if so, it dequeues it.

iCaspar commented 2 years ago

Ready for @wp-media/qa Acceptance criteria: When Cloudflare Super Page Cache and Imagify are both active, there is no JS sweetalert error in console on any of the Imagify plugin admin pages, and bulk works as expected.