How do I remove stray javascript from my website's top?

Topic summary

A Shopify store owner is experiencing an issue where garbled JavaScript code is displaying at the top of their website, above all other elements. The visible code appears to be corrupted or improperly rendered Boomerang performance monitoring script, showing a mix of normal and reversed/scrambled text.

Key Details:

  • The problem affects the site’s visual presentation
  • A screenshot and live URL were provided showing the issue
  • The code includes references to BOOMR (Boomerang), event listeners, and resource timing functions

Proposed Solution:
One respondent suggested reverting the theme.liquid file to its original code, indicating this should resolve the display issue. This implies the problem likely stems from recent theme modifications or corrupted template code.

Status: The thread appears to have a potential solution offered, but no confirmation of whether it successfully resolved the issue.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.


https://b1610e-2.myshopify.com/?_ab=0&_fd=0&_sc=1

The following javascript appears on the top of my website, above all other elements, how to fix this?

%.lelse (win. boom a function© (bootstrapO; I; if (win addEventListener) (win addEventListener("load*, win, boomrl, false):slight_smile: else if (win.attachEvent) ( win.attachEvent(“onload” win, boomil): 1) doc close:) var link s document createf lement(“link*); if (link.relList &b typeof link refList supports sas “function” && link rettist supports(*preload”) §t("ag° in

(ink) | window BOOMR snipperMethod = *p"; link.href = window. BOOMR.un; link.ref s “preload”; link as = “script”; link,addEventListener(“load”, promote);

link addl ventlistener*error, function) I IframeLoader(true); I); setTimeout(function, fif (lpromoted)

(iframeLoader(true); J1, LOADER_TIMEOUT); 800MR_/start = nev

Datel, getTimel); parentiode.appendChild(link); | else (iframeLoader (false); ) function boomerangSaveLoad Time(e) | window.800MR _onload = (e && etimestamp) || nem

Datel), grlimet;) If (window addLventlistener) (window addE ventListener(*load, boomerangSaveloadTime, false)s) else if (window attachevent) (window attachtyent onload", boomerangsaveloadTime); | if (document.addEventListener) | document addEventListener( onboomerangloaded®, functionfe) (e detail BOOMR Init/Resourcelimings (enabled. true, trackedResourceTypes: ('scnpt, “ime”, C8s")1, Ir e.detall.BOOMRAend s new Date(.getTimeO; Il; | else if (document attachEvent) (

document attachEvent"onpropertychange", function(e) ( if (le) esevent, if (e propertylame ere “onBoomerangloaded”) | odetail.OOMR,init(| Resourcefiming: ( enabled; true, rechedResourcelypes. (“script”, “img”, *css) 1, 1): e.detail.BOOMR. end s new Datel).getTime(; 10);1010.

Hello @Designsfordays ,

Revert te code of the theme.liquid to its orignal and it will fixed.

Thanks