Need JS scripts to exclude from optimizer
-
Hey there!
Recently, I was happy with the woocommerce blocks and that how well they were structured but soon after I integrated SG optimizer plugin and tweaked frontend optimizations like combine JS files and Defer render blocking JS which stopped the blocks from loading, it was taking almost a day to load or sometimes donβt even load. I contacted woocommerce blocks support and they said that the issue is arising from the sg optimizer plugin itself and its optimization features and that it happens sometimes, the developers of this plugin could tell you about the specific scripts to exclude from render blocking JS and combine JS features as these factors canβt be disabled as they play an important role in website speed.
When I enable them, the cart and checkout fields don’t load and when I disable them they start to work perfectly! I also checked in the google search console when they weren’t loading and that it might help in problem rectification, please see below and guide me for exclusion of those specific scripts for load:
siteground-optimizer-combined-js-f404218ed2b4dc6ce5d7d6a40c781186.js:987 Uncaught TypeError: Object(...) is not a function at Module.z7pY (siteground-optimizer-combined-js-f404218ed2b4dc6ce5d7d6a40c781186.js:987) at e (siteground-optimizer-combined-js-f404218ed2b4dc6ce5d7d6a40c781186.js:987) at wp.keycodes.YLtl (siteground-optimizer-combined-js-f404218ed2b4dc6ce5d7d6a40c781186.js:987) at siteground-optimizer-combined-js-f404218ed2b4dc6ce5d7d6a40c781186.js:987 invisible.js:1 Uncaught DOMException: Failed to execute 'postMessage' on 'Worker': An OffscreenCanvas could not be cloned because it was detached. at c.<computed> (https://www.shopfiona.com/cdn-cgi/challenge-platform/h/b/scripts/invisible.js:1:22690) at Object.trigger (https://www.shopfiona.com/wp-includes/js/jquery/jquery.min.js:2:71566) at s.fn.init.triggerHandler (https://www.shopfiona.com/wp-includes/js/jquery/jquery.min.js:2:72194) at o (https://www.shopfiona.com/wp-content/uploads/siteground-optimizer-assets/siteground-optimizer-combined-js-f404218ed2b4dc6ce5d7d6a40c781186.js:545:34809) at i (https://www.shopfiona.com/wp-includes/js/jquery/jquery.min.js:2:40027) at dispatch (https://www.shopfiona.com/wp-includes/js/jquery/jquery.min.js:2:43064) at v.handle (https://www.shopfiona.com/wp-includes/js/jquery/jquery.min.js:2:41048)Looking forward for your response.
The page I need help with: [log in to see the link]
The topic ‘Need JS scripts to exclude from optimizer’ is closed to new replies.