Hey @thekendog,
Are you sure it’s a js-cookie conflict?
On my site, I enqueue a CDN version of js-cookie and run Popup Maker at the same time. I’ve done this for over a year with no issues. I’m running Popup Maker 1.16.10.
See if you have other plugins like Woo that load js-cookie. Use something like the Query Monitor plugin to tell you how many times you’ve got js-cookie loaded, what handle it has, and which plugin is loading it.
As a last resort and if you’re sure it’s a js-cookie conflict, try overriding the existing version of js-cookie with yours by deregistering js-cookie first.
E.g.,
// Let's remove the existing js-cookie library.
wp_dequeue_script('js-cookie'); // Make sure you use the correct handle.
wp_deregister_script('js-cookie'); // Make sure you use the correct handle.
// And, we'll replace it with our own ;-)
wp_register_script(
'js-cookie-3-0-1',
'https://cdn.jsdelivr.net/npm/[email protected]/dist/js.cookie.min.js',
array(),
'3.0.1',
false
);
wp_enqueue_script('js-cookie-3-0-1');