Rimg supports responsive websites to provide a way to optimize images (like CMS-content) in a simple and performant way. Pure Javascript, no server-side code and 2 lines of code (library + definition).
responsiveimagejavascriptbreakpointretinaresizeDOMContentLoaded