DEV Community

loading...

Discussion on: 🚀Responsive Web Design 🚀: Why You Should Care

Collapse
thomasverleye profile image
Thomas Verleye

I'd recommend you don't use javascript for loading different image sources, that's what srcset and sizes are made for:
developer.mozilla.org/en-US/docs/L...

And if you like lazy loading:
developer.mozilla.org/en-US/docs/W...