diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index bbd17ca950..02cb291dc0 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -169,7 +169,7 @@ class Interchange extends Plugin { if (type === 'auto') { if (this.$element[0].nodeName === 'IMG') type = 'src'; - else if (path.match(/\.(gif|jpe?g|png|svg|tiff)([?#].*)?/i)) + else if (path.match(/\.(gif|jpe?g|png|svg|tiff|avif|webp)([?#].*)?/i)) type = 'background'; else type = 'html';