---
title: "Discussion on \"Responsive images for better performance: Start using srcset and picture\" | Hashnode"
description: "Discussion on \"Responsive images for better performance: Start using srcset and picture\". Two new attributes have been added to the <img> tag: srcset and sizes. These two attributes tell the browser what resolutions are available for a given img"
url: "https://hashnode.com/posts/responsive-images-for-better-performance-start-using-srcset-and-picture/619a451b5bb9cc256fc6ab5e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Responsive images for better performance: Start using srcset and picture](https://theangularguy.hashnode.dev/responsive-images-for-better-performance-start-using-srcset-and-picture?utm_source=hashnode&utm_medium=feed)

Two new attributes have been added to the <img> tag: srcset and sizes. These two attributes tell the browser what resolutions are available for a given img

Nov 8, 2021 · 5 min read · theangularguy.hashnode.dev  
Updated Nov 27, 2021  
Read the article

-   [#html5](https://hashnode.com/tag/html5)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#performance](https://hashnode.com/tag/performance)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Mustapha Aouas](https://hashnode.com/@theAngularGuy)

@theAngularGuy

  
[View profile](https://hashnode.com/@theAngularGuy)

Technical writer, speaker & JS / TS developer — Angular Lyon co-organizer

Technical writer, speaker &amp; JS / TS developer — Angular Lyon co-organizer — I like sharing what I know and learning what I don't 👨🏻‍💻

## Responses 3

Markdown supported · ⌘↵ to post

[Kunal Agrawal](https://hashnode.com/@kunalpy3)

[Nov 28, 2021](https://hashnode.com/posts/responsive-images-for-better-performance-start-using-srcset-and-picture/619a451b5bb9cc256fc6ab5e/comment/61a2ec5e9ac0d611876aff1d)

Amazing Guide for srcset.

```
     <ThankYou>
     TheAngularGuy
     </ThankYou>
```

[Mustapha Aouas](https://hashnode.com/@theAngularGuy)

[Nov 29, 2021](https://hashnode.com/posts/responsive-images-for-better-performance-start-using-srcset-and-picture/619a451b5bb9cc256fc6ab5e/comment/61a2ec5e9ac0d611876aff1d#reply-61a4a1ae9ac0d611876b19c6)

Glad I could help, Thank you for the feedback!

[Favourite Jome](https://hashnode.com/@Favourite)

[Nov 26, 2021](https://hashnode.com/posts/responsive-images-for-better-performance-start-using-srcset-and-picture/619a451b5bb9cc256fc6ab5e/comment/61a0e3c89829fb749bcc0414)

Wow, this is really an interesting feature that has been added, but I guess the downside would be loading a different image on a larger viewport on a really slow network.

Thanks for sharing!

[Mustapha Aouas](https://hashnode.com/@theAngularGuy)

[Nov 26, 2021](https://hashnode.com/posts/responsive-images-for-better-performance-start-using-srcset-and-picture/619a451b5bb9cc256fc6ab5e/comment/61a0e3c89829fb749bcc0414#reply-61a0f97ee6a8de7421325487)

Actually, it depends on how you want to use it. For example, some people take the picture they want to use and resize it to smaller pictures for smaller devices. That way it's only for the best. But I get your point, it's something to keep in mind (you can add some JS to check for the network connection quality and change the srcset depending on that, or something like that) 👍🏼

[Mudita](https://hashnode.com/@shapemyskillsofficia)

[Nov 26, 2021](https://hashnode.com/posts/responsive-images-for-better-performance-start-using-srcset-and-picture/619a451b5bb9cc256fc6ab5e/comment/61a0aa629829fb749bcbfd81)

great explaination
