Updated my Magician site yesterday to remove the background video on part of the page (to speed it up a little). Republished everything and thought it was all working OK until later on I happened to try to reach a blog post and discovered it wasn't loading. Just got the loading screen and some JS errors in the console.

Tried replacing the Blog List stack (legacy) with the new 1.4 version but that didn't help. 

Slept on the problem and this morning found some JS code in the code view in the Body section on every page. Removed that and all working again.

Now I wonder why I put that code in in the first place? With 11 years of changes to this site its difficult to remember.

<script>
window.fbAsyncInit = function() {
FB.init({
appId      : '1900790790152635',
cookie     : true,
xfbml      : true,
version    : 'v2.8'
});
FB.AppEvents.logPageView();  
};

(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.8&appId=1900790790152635";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>