checkImages - Methods - Questions API

Questions API Methods

checkImages()

Check if images within the Question are loaded. The returned Promise resolves if all the images have successfully loaded and rejects as soon as one image fails loading.

Examples

.checkImages()
    .then(function () {
        console.log('All images are loaded');
    })
    .catch(function () {
        console.log('An image within the question failed loading');
    });

Arguments

None.

Return value

Type object

  • catch function

  • then function

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.