Custom Code in Homepage breaking Editor for whole site


I’m quite new to Webflow and web development in general, but have managed to build a new website to spec for a client and am close to the point of handing it over.

However, I’ve noticed that custom code I have in the Homepage settings is breaking the Editor for the whole site to the point that it’s practically unusable. The code is there to create an infinitely scrolling image gallery, but it’s causing serious issues with the Editor.

Is there anyway I can disable the custom code when I’m in Editor mode? This would solve my problem as I’d be able to keep the custom code and enable the client to update the site.

Thanks in advance for your help!


Here is my site Read-Only: [LINK]1
(how to share your site Read-Only link)