I’m running a WordPress site on Kinsta and I’m having an issue with an embedded script. It works fine when I test it locally, but on the live site it sometimes fails to load or shows errors in the console.
I’ve already tried clearing the cache, disabling some plugins, and testing in different browsers, but the problem still happens randomly.
Has anyone experienced something similar with external scripts on Kinsta?
Any tips on what to check (caching, CDN, or server settings)?
One thing worth checking is whether the script is being served through a minify/combine or caching layer that rewrites it, since random failures often come from a stale cached copy or a blocked third-party request. Open the browser Network tab on a failing load and look at the status and any CSP or mixed-content errors in the console. Also try excluding that script from optimization or CDN caching to see if it stabilizes.