Our Tag Manager went down today causing our site to crawl to a hault. As the code in the tag manager isn't mission critical (analytics, etc...), is there a way to do something like the following?
var extScript = document.createElement('script');
extScript.type = 'text/javascript';
extScript.src = 'http://third-party.com/scriptfile.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(extScript, s);
window.setTimeout(function () {
// if script not loaded - "give up"
}, 3000); // 3 secs