I’m running into a strange bug with a Shopify theme app extension I built (with a Remix backend). Each day, sometime in the afternoon, the extension just… stops rendering.
Here’s what’s odd:
The JavaScript assets from the extension aren’t just failing to load — they’re not even present in the HTML. No <script> tags, no requests in the network tab. It’s like Shopify just forgets the app block exists.
Nothing changes in my code or deployment — the issue just starts happening out of nowhere.
Other parts of the app (like function APIs and Remix routes) stay fully functional.
If I switch to a different theme during the issue window, everything works instantly. And the theme app extension, will only start working again on the original theme after waiting for the next morning.
It feels like something internal to Shopify — maybe CDN caching, theme-asset sync issues, or some deployment lag — is causing the blocks to vanish temporarily.
Has anyone experienced anything like this? I’ve been able to reproduce it consistently across several days. I’d love to know if others have seen or solved this kind of problem before.
Can you share your theme block’s main .liquid file?
Maybe there’s a clue there.
Are you referencing files that are built from a bundler in the liquid files? You have to be careful to make sure the bundler is running, is emitting files and that all of the files are compatible within the assets directory.
To clarify, the .js files aren’t built using a bundler — I manually create them and drop them into the assets folder, then reference them in the .liquid template using the tag.
In the case of cart-script.js, it’s not meant to render any visual elements by default. What it does is check if a user is a club member (via a Shopify app proxy endpoint) and, if they are, inject a “Download PDF” button into the cart UI. This button triggers a request to generate and download a custom PDF based on cart contents and customer ID. So even something as simple as a console.log() should confirm the script is loaded.
The issue is that these scripts completely stop loading at some point later in the day — not intermittently, but very consistently — and then start working again the next morning without any changes on my end. During the affected time, even a basic console.log in the script doesn’t show up in the console. So it’s not a rendering issue; it’s that the browser doesn’t seem to load the script at all anymore.
Appreciate any insight into what might be causing this. Let me know if anything sounds off.