A Shopify store is experiencing persistent 404 errors from a script (tmpopup.js) belonging to a previously removed app. The script continues loading via the {{ content_for_header }} Liquid tag in theme.liquid, which Shopify uses to inject app code.
Root Cause:
The asyncLoad() function in content_for_header attempts to load scripts from removed apps. Simply uninstalling the app doesnât always remove these script references from Shopifyâs system.
Proposed Solution:
One user suggests manually filtering out the problematic script by replacing {{ content_for_header }} with a modified version that uses Liquidâs remove filter:
Current Status:
The original poster claims to have fixed it by hiring a developer but didnât share the actual solution, frustrating other users experiencing the same issue. The script has been identified as belonging to Lucky Orange analytics service.
Summarized with AI on November 14.
AI used: claude-sonnet-4-5-20250929.
I have a script fragment that used to be an app which was removed. Shopify still thinks it is live, so runs it and gets a 404 on the called resource - tmpopup.js
<script>(function() {
function asyncLoad() {
var urls = ["https:\/\/d16x9pmufyvewt.cloudfront.net\/tmpopup.js?shop=dermagevity.myshopify.com","https:\/\/omnisrc.com\/inShop\/Embed\/shopify.js?shop=dermagevity.myshopify.com","https:\/\/www.stilyoapps.com\/reconvert\/assets\/js\/store_reconvert.js?shop=dermagevity.myshopify.com"];
for (var i = 0; i < urls.length; i++) {
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src=urls[i];
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);
}
};
if(window.attachEvent) {
window.attachEvent('onload', asyncLoad);
} else {
window.addEventListener('load', asyncLoad, false);
}
})();</script>
It loads in the head section. I assume that shopify injects the code because the other two apps are in my app dashboard, and this script doesnât exist in my theme files.
Frankly I am sick of dealing with unresponsive app developers, and I reckon this is a shopify issue not an app dev issue anyway.
Hey Rrakausk - also having a problem with this script interfering with apps on our shopfiy store. You said you got a developer that solved the issue. Could you share their contact info with me please?
You marked your answer as a solution but it does not contain the solution. This is misleading and does not help anyone else who is stumbling upon this page experiencing the same issue.
To anyone who is still wondering what vendor this mysterious script belongs to, it is Lucky Orange.