ImagePreloader.getIsCORSSupported

Syntax

getIsCORSSupported();

Description

The getIsCORSSupported method returns the attribute of the CORS technology supporting.

Comments

The method returns the True value if the CORS technology is supported, otherwise it is False.

Example

To execute the example, the ImagePreloader class named imagePreloader» must be present (see ImagePreloader constructor). Check whether the CORS technology is supported:

// Check whether the CORS technology is supported
if (imagePreloader.getIsCORSSupported()) {
    console.log("The CORS technology is supported");
} else {
    console.log("The CORS technology is not supported");
}

As a result the console displays information about the CORS technology support:

The CORS technology is supported

See also:

ImagePreloader