js/NativeXhrDataProvider.js
function (url) {
            var ret = true, xhr;
            try {
                // try the lowest footprint synchronous request to specific url.
                xhr = new XMLHttpRequest();
                xhr.open("HEAD", url, false);
                xhr.send();
            } catch (e) {
                ret = false;
            }
            return ret;
        }
function (url) {
            var ret = true, xhr;
            try {
                // try the lowest footprint synchronous request to specific url.
                xhr = new XMLHttpRequest();
                xhr.open("HEAD", url, false);
                xhr.send();
            } catch (e) {
                ret = false;
            }
            return ret;
        }
function ( url ) { var ret = true , xhr ; try { // try the lowest footprint synchronous request to specific url.
 xhr = new XMLHttpRequest ( ) ; xhr . open ( "HEAD" , url , false ) ; xhr . send ( ) ; } catch ( e ) { ret = false ; } return ret ; }
test - do a network test with a synchronous call.
@param url to test.
test - do a network test with a synchronous call .