test failed loading of Google Analytics
<p>I noticed that stackoverflow has some JS code which generates: a warning with "Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load.". This happened to me a moment ago when Google Analytics didn't load correctly. </p>

<p>How would I do something like this? </p>

<p>Note: I could have a  but all other JS loads correctly this is only for google analytics which sometimes either never loads or takes forever.</p>

<p>When I check the code they have:</p>

<pre><code>StackExchange.init = function () {
    var e = function (a) {
        if (!window.jQuery) if ("complete" != document.readyState) setTimeout(function () {
            e(a)
        }, 1E3);
        else {
            var d = document.createElement("div");
            d.id = "noscript-padding";
            var g = document.createElement("div");
            g.id = "noscript-warning";
            g.innerHTML = a + " requires external JavaScript from another domain, which is blocked or failed to load.";
            document.body.insertBefore(d, document.body.firstChild);
            document.body.appendChild(g)
        }
</code></pre>

<p>But I am not sure what is going on with the setTimeout()</p>
