Hacker News new | past | comments | ask | show | jobs | submit login

Yes, you can do all that, which was the more common way of having responsive elements without all the fancy new tech. It seems this post is talking about only loading the size you need.

What you're describing can mean loading something large and resizing responsively -- which can result in enlarged photos or wasted bytes to load an image of a size you don't need.

This is an interesting approach for people who don't mind cluttering their HTML, but want to scale media appropriately.

My cursory reading indicates that with media queries, the browser is smart enough to only downloads the images that match the media query.

So you could have media queries for small size, medium size and large size with urls pointing to different images, and only the appropriate image will be downloaded and applied, thus achieving the same effect.

Applications are open for YC Summer 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact