Hi @droyed,
The easiest way (but not all that easy) would probably be to unenqueue the Chaplin JavaScript file, and enqueue your own replacement file in a child theme with the code you don’t need stripped out.
— Anders
Thread Starter
droyed
(@droyed)
Thanks @anlino
I definitely do not have the technical know-how to do this haha
Is there a plugin I could use?
@droyed Yeah, it’s a pretty involved thing. A plugin wouldn’t know which JavaScript is needed on which page, so it can’t really be automated. You can install a caching plugin to reduce the footprint of the JavaScript files overall, but removing JavaScript based on which features you’re using would need to be done manually in code.
Thread Starter
droyed
(@droyed)
Hi @anlino
Thank you for your prompt response. I have Google SiteKit plugin that suggested the following:
https://prnt.sc/12o2lb8
https://prnt.sc/12o2n65