default element ‘fluid’ by default. Mobile first? Cons: It’s still loading the same resources on any platform. Doesn’t really solve the underlying issue, but it’s a cheap hack. img,canvas,iframe,video,svg { max-width:100% } .overflow-container { overflow-y:scroll; -webkit-overflow-scrolling:touch }
Firefox, Safari, IE9+ Pros: Widely supported, now. Gracefully degrades. Full media query support. Solves art direction issues. Cons: Fugly markup. Creation is really complex.
if you use data-attributes, or polyfill-type approach. • Allows you to combine art-direction data with image resources. Cons: • Needs an accessible fallback, which means loading more images. • Doing things with Javascript is less efficient than having the browser do the same task, and it’s also slower. • It can be render-blocking. • It can’t detect network quality.