Large Code Appearing at the Top of my Website

GameRoomGalore
New Member
4 0 0

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(); } }); } })();

Replies 2 (2)

suyash1
Shopify Partner
9267 1152 1495

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

To build shopify pages use pagefly
You are welcome to contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Paranormal story video using AI
GameRoomGalore
New Member
4 0 0

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 <script> </script> tag at the very bottom of the <body> 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! 🙂