We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ef3a03 commit b54a104Copy full SHA for b54a104
gulpfile.js
@@ -58,7 +58,7 @@ gulp.task('webphtml', function () {
58
$('img[src]:not(.not-webp)').each(function () {
59
var imgEl = $(this)
60
var src = imgEl.attr('src')
61
- if(/^http/.test(src)) return
+ if (/^http|\.(gif|svg)$/.test(src)) return
62
imgEl.css('visibility','hidden')
63
imgEl.removeAttr('src')
64
imgEl.attr('data-src', src)
0 commit comments