Large Code Appearing at the Top of my Website

Topic summary

A Shopify store owner using the Debutify theme is experiencing a large block of JavaScript code displaying visibly at the top of their website, appearing on both the design page and the live site.

Troubleshooting attempts:

  • Searched through theme.liquid, blog.liquid, and header.liquid files
  • Tried solutions from similar forum posts without success
  • The code appears to be Boomerang-related JavaScript (performance monitoring script)

Community response:

  • One user suggested the JavaScript code is not properly enclosed within <script></script> tags in the theme.liquid file
  • The store owner searched for “boomerang” and related keywords but couldn’t locate the problematic code
  • Attempted wrapping the code in script tags at the bottom of the <body> section, but this didn’t resolve the issue

Current status:

  • The problem remains unresolved
  • The store owner acknowledges being a beginner with coding and requests additional guidance
Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Hello all!

I have been creating my Shopify store for the past few days with the Debutify theme, and see a large sum of code appearing at the top of both the website design page in Shopify and in my actual store’s website. The code is larger than other posts I have been reading about on this discussion forum, and therefore felt it was necessary to create a post myself. I have spent time going through my theme.liquid, bloq.liquid, and header.liquid trying every variation of previous answers to others problems, but no cigar. I have attached the copied code source of my issue, and I would really appreciate any advice or guidance, as we are all in this fantastic risk taking journey together.

"); } else { win._boomrl = function() { bootstrap(); }; if (win.addEventListener) { win.addEventListener(“load”, win._boomrl, false); } else if (win.attachEvent) { win.attachEvent(“onload”, win._boomrl); } } doc.close(); } var link = document.createElement(“link”); if (link.relList && typeof link.relList.supports === “function” && link.relList.supports(“preload”) && (“as” in link)) { window.BOOMR.snippetMethod = “p”; link.href = window.BOOMR.url; link.rel = “preload”; link.as = “script”; link.addEventListener(“load”, promote); link.addEventListener(“error”, function() { iframeLoader(true); }); setTimeout(function() { if (!promoted) { iframeLoader(true); } }, LOADER_TIMEOUT); BOOMR_lstart = new Date().getTime(); parentNode.appendChild(link); } else { iframeLoader(false); } function boomerangSaveLoadTime(e) { window.BOOMR_onload = (e && e.timeStamp) || new Date().getTime(); } if (window.addEventListener) { window.addEventListener(“load”, boomerangSaveLoadTime, false); } else if (window.attachEvent) { window.attachEvent(“onload”, boomerangSaveLoadTime); } if (document.addEventListener) { document.addEventListener(“onBoomerangLoaded”, function(e) { e.detail.BOOMR.init({ ResourceTiming: { enabled: true, trackedResourceTypes: [“script”, “img”, “css”] }, }); e.detail.BOOMR.t_end = new Date().getTime(); }); } else if (document.attachEvent) { document.attachEvent(“onpropertychange”, function(e) { if (!e) e=event; if (e.propertyName === “onBoomerangLoaded”) { e.detail.BOOMR.init({ ResourceTiming: { enabled: true, trackedResourceTypes: [“script”, “img”, “css”] }, }); e.detail.BOOMR.t_end = new Date().getTime(); } }); } })();

@GameRoomGalore - this looks like javascript code which is not enclosed in tag, please check that part in your theme.liquid file

Hello @suyash1 ! Thank you for your insight, I am a complete rook when it comes to this fantastic coding language and have been reading to try to get a grasp but still rather having some trouble; please stay with me here as I ty to explain my understanding and thought process. I looked in the theme, header, password, and body.liquid files and did not see that string of code anywhere as far as I could tell. Using ctrl+f and searching for “boomerang” as my fun key word to get me in the ball park of finding the code did not show anything. My thought process after reading more forums led me to paste this string of code enclosed in tag at the very bottom of the section, and it did nothing for the website. Thank you again for your insight I am just a complete beginner when it comes to this, any other suggestions would be greatly appreciated! :slightly_smiling_face: