wordpress-popular-posts icon indicating copy to clipboard operation
wordpress-popular-posts copied to clipboard

Hook into third party plugins to exclude wpp.js from JS optimization / bundling?

Open cabrerahector opened this issue 1 year ago • 0 comments

There's quite often some kind of conflict with third-party plugins (eg. LiteSpeed Cache, SiteGround Optimize/Speed Optimizer, etc.) due to them bundling WPP's JS file while ignoring the various data- properties included with the script, breaking WPP's ability to work as intended.

Some of these plugins though do provide filter hooks (eg. LiteSpeed's litespeed_optimize_js_excludes, Speed Optimizer's sgo_javascript_combine_exclude_ids, etc) that we could rely on to automatically exclude wpp.min.js and wpp.js from their JS bundling / minification process.

cabrerahector avatar Jun 28 '24 12:06 cabrerahector