Bit of a long shot here. I'm tasked with improving the page load on a Shopify site which has the Zendesk Shopify app installed.
The client is not using live chat - they use Zendesk to ensure that all the comments under blog posts end up in Zendesk. Which means Zendesk is sending a lot of JavaScript to every page in the site, when it (at most) only needs to appear on blog article pages.
Unfortunately, all of the JavaScript which is embedded in the site is hidden behind a `{{ content_for_header }}` token. And while Shopify's liquid language could in theory allow me to manipulate the output string to conditionally remove the Zendesk JavaScript, this approach seems ... brittle.
Do I just have to accept this additional payload, or do I have other options? (apart from headless, which is the long term plan anyway)