Uncaught ReferenceError: Cookies is not defined

[ad_1]

Hello and thank you very much for your plugin.

I am using PixelYourSitePRO to connect my website with Facebook. The guys from PixelYourSite plugin recommend that users who have WP Rocket installed, should exclude 2 of their JS files (reference here: .
I am using WP Rocket but I do all CSS/JS optimization with Autoptimize. So naturally, I excluded these two scripts:

pixelyoursite-pro/dist/scripts/public.js
pixelyoursite-pro/dist/scripts/jquery.bind-first-0.2.3.min.js

But, once I do that, I get an “Uncaught ReferenceError: Cookies is not defined” error in chrome console. If I disable Autoptimize, no error occurs. I also have these exclusions in autoptimize (since forever):

seal.js
js/jquery/jquery.min.js
wp-includes/js/dist/
wp-includes/js/tinymce/
kirki/modules/webfont-loader/vendor-typekit/webfontloader.js
/wp-content/plugins/translatepress-multilingual/assets/js/trp-frontend-compatibility.js

Image of the error:

Is there any solution for this error?

Kind regards,
Ilias

  • This topic was modified 38 minutes ago by ilkork.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer