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 457aa5b commit 57158edCopy full SHA for 57158ed
lib/dom/performance/avoidScalingImages.js
@@ -11,14 +11,9 @@
11
12
for (let i = 0, len = images.length; i < len; i++) {
13
const img = images[i];
14
- const fileExtension = new URL(img.currentSrc).pathname.split('.').pop();
15
16
// skip svg images and images that are 0 (carousel etc)
17
- if (
18
- fileExtension !== 'svg' &&
19
- img.clientWidth + minLimit < img.naturalWidth &&
20
- img.clientWidth > 0
21
- ) {
+ if (img.clientWidth + minLimit < img.naturalWidth && img.clientWidth > 0) {
22
// message = message + ' ' + util.getAbsoluteURL(img.currentSrc) + ' [browserWidth:' + img.clientWidth + ' naturalWidth: ' + img.naturalWidth +']';
23
offending.push(util.getAbsoluteURL(img.currentSrc));
24
score += 10;
0 commit comments