Mathew Imaging/WireImage/Getty Images
Categories :
Mathew Imaging/WireImage/Getty Images
Related Post
Robin Alam/ISI Photos/Getty Images
Robin Alam/ISI Photos/Getty Images [...]
function imageLoadError(img) { const fallbackImage = ‘/media/sites/cnn/cnn-fallback-image.jpg’; img.removeAttribute(‘onerror’); img.src = fallbackImage; let element = img.previousElementSibling; while (element && element.tagName === ‘SOURCE’) { element.srcset = fallbackImage; element = element.previousElementSibling; } } Eduardo Munoz/Reuters
function imageLoadError(img) { const fallbackImage = ‘/media/sites/cnn/cnn-fallback-image.jpg’; img.removeAttribute(‘onerror’); img.src = fallbackImage; let element = img.previousElementSibling; [...]