Detecting if iframe source have 'same origine' protection
<p>I got a script that checks loading times of multiple urls that are stored in a txt file:</p>

<pre><code>$.get("imones.txt", function (data) {
        var array = data.split(/\r\n|\r|\n/) 
        var beforeLoad = (new Date()).getTime();    
        var loadTimes = [];
            var beforeTimes = [];               
        $('#frame_id').on('load', function () {                                 
            beforeTimes.push(beforeLoad);
            loadTimes.push((new Date()).getTime()); 
            $('#frame_id').attr('src', array.pop());
                $.each(loadTimes, function (index, value) { 
                    var result = (value - beforeTimes[index]) / 1000;
                        if (result &lt; 0) {
                            result = result * (-1);
                        }   
                    $("#loadingtime" + index).html(result);
                    beforeLoad = value;
                });
        }).attr('src', array.pop());
    });
</code></pre>

<p>If i got a url in my list with 'same origine' protection (google for example), it will crash my script and wont check loading values of other urls in the list. I was thinking i could see if a specific url has 'same origine' error, i would change that urls loading result "not available" or something:</p>

<pre><code>     if(url has same origine){
result = "loading time not available";
} else {
//do my calculations
</code></pre>

<p>so yeah, can i somehow see if a specific url will give me 'same origine' error before i do my calculations for loading time?</p>
