The goog.net.tmpnetwork Namespace

.GOOGLECOM_TIMEOUT {number}

Default timeout to allow for google.com pings.

.testLoadImage(url, timeout, callback)

Test loading the given image.

url {string}
URL to the iamge.
timeout {number}
Milliseconds before giving up.
callback {Function}
Function to call with results.

.testLoadImageWithRetries(url, timeout, callback, retries, opt_pauseBetweenRetriesMS)

Test loading the given image, retrying if necessary.

url {string}
URL to the iamge.
timeout {number}
Milliseconds before giving up.
callback {Function}
Function to call with results.
retries {number}
The number of times to retry.
opt_pauseBetweenRetriesMS {number=}
Optional number of milliseconds between retries - defaults to 0.