gitlab-org--gitlab-foss/app/assets/javascripts/lib/utils/image_utility.js

3 lines
101 B
JavaScript

export function isImageLoaded(element) {
return element.complete && element.naturalHeight !== 0;
}