marcelduran / yslow

YSlow analyzes web pages and suggests ways to improve their performance based on a set of rules for high performance web pages.
yslow.org
BSD 3-Clause "New" or "Revised" License
2.21k stars 383 forks source link

SVG should not count towards "Do not scale images in HTML" #91

Open jamesor opened 10 years ago

jamesor commented 10 years ago

"Grade D on Do not scale images in HTML There are 8 images that are scaled down

Web page designers sometimes set image dimensions by using the width and height attributes of the HTML image element. Avoid doing this since it can result in images being larger than needed. For example, if your page requires image myimg.jpg which has dimensions 240x720 but displays it with dimensions 120x360 using the width and height attributes, then the browser will download an image that is larger than necessary."

Each of my images are SVG and therefore not affected by the description given above. They shouldn't be poorly graded in this case.

nottoseethesun commented 10 years ago

+1

scottoreilly commented 7 years ago

+1

camtin commented 7 years ago

Yes please

downhiller commented 6 years ago

+1