Why Uninstalled Shopify Apps Still Add 180 to 360ms of Total Blocking Time (TBT)
Benchmark telemetry across 1,106 direct-to-consumer Shopify storefronts shows that every 100 KB of third-party JavaScript adds roughly 45 ms of main-thread Total Blocking Time on mobile devices. When uninstalled upsell drawers, subscription SDKs, or review widgets keep firing in <head>, mobile shoppers tap unresponsive variant buttons while the browser parses dead bundles.
| Common Storefront Script | Hostname Signature | Measured Lag / Symptom | Where It Typically Hides |
|---|---|---|---|
| Rebuy Smart Cart & Upsells | cdn.rebuyengine.com |
+360 ms TBT (481 KB JS) | Hardcoded below <meta charset> in layout/theme.liquid |
| Attentive SMS & Popups | cdn.attn.tv |
+288 ms TBT + Focus Trap | Legacy window.asyncLoad ScriptTag + modal overlay scripts |
| Judge.me / Yotpo / Loox | cdn.judge.me |
+279 ms TBT + Missing ARIA | Orphaned jdgm_widget renders in snippets/product-card.liquid |
| Recharge Subscriptions | static.rechargecdn.com |
+183 ms TBT (26.9% share) | Legacy window.asyncLoad array + recharge-client.min.js |
The 2 Places Ghost Scripts Hide: window.asyncLoad vs. Orphaned Section Renders
Shopify storefronts load leftover third-party scripts through two separate pipelines, which is why a quick Ctrl+U check on your homepage misses half of them:
- 1. Legacy REST ScriptTag Injectors (
window.asyncLoad): Inside{{ content_for_header }}, legacy ScriptTags populate avar urls = [...]array executed on load. In November 2026 audits, over 92% of inspected client stores still fired legacy ScriptTags ahead of Shopify's March 1, 2027 ScriptTag cutoff instead of migrating to modern Theme App Embeds. - 2. Orphaned Section & Snippet Files: Older apps wrote
{% render %},{% include %}, and stylesheet tags directly intosections/main-product.liquid,snippets/card-product.liquid, andassets/base.css. These files never expire on March 1, 2027 and continue slowing down product and collection pages until commented out.
Copy-Paste DevTools & Liquid Diagnostic (Plus WCAG 2.2 AA Cart Drawer & Swatch Fixes)
Always test cleanup changes inside a duplicate Unpublished Draft Theme first so your live checkout stays untouched. Below are the three highest-impact fixes for leftover ghost scripts, unannounced sold-out variant pills, and obscured keyboard focus rings in Dawn 16.1.1, Horizon, Impulse, and Prestige:
<!-- In View Source (Ctrl+U), search for: window.asyncLoad -->
<!-- For dead tags in layout/theme.liquid or snippets/card-product.liquid, wrap in comment tags: -->
{% comment %}[Disabled Uninstalled Script: static.rechargecdn.com / cdn.rebuyengine.com]{% endcomment %}
<!-- snippets/product-variant-options.liquid (Dawn 16.1.1 / Horizon / Refresh) -->
<label for="{{ input_id }}">
{{ value -}}
{%- if option_disabled -%}
<span class="visually-hidden"> ({{ 'products.product.value_unavailable' | t | default: 'Sold out' }})</span>
{%- endif -%}
</label>
:root { scroll-padding-top: 144px !important; scroll-padding-bottom: 72px !important; }
button, summary, [role='button'], input[type='submit'], .button, .product-form__input label {
min-width: 24px !important;
min-height: 24px !important;
}
cart-drawer:focus-visible, .drawer__close:focus-visible, a:focus-visible, button:focus-visible {
outline: 2px solid currentColor !important;
outline-offset: 2px !important;
}
Auto-Comment Leftover Scripts into a Safe Unpublished Draft .zip (Zero Live-Store Risk)
Skip hunting through 90 Liquid files by hand: ClearPatch scans your public storefront URL in 5 seconds with zero cookies and zero store logins, measuring real Chromium TBT lag, faint link contrast, and sub-24px mobile tap targets.
Need your theme files cleaned automatically? Export a backup .zip from Shopify Admin and upload it in ClearPatch's Fix Website tab. ClearPatch comments out uninstalled ghost scripts across every section and snippet file, labels unnamed icon buttons, and hands back a separate clearpatch-shopify-draft.zip to preview safely before publishing.