Why do we need this tool?
We want to provide the best experience to our clients’ users, so optimizing web performance is one of our main concerns.
Using responsive images in every projects, we wanted to be able to make it as efficient as possible. The main difficulty is choosing the image widths we put in
srcset attributes, because nothing in the standard tells us about this.
How does it work?
It takes 3 steps for
daltons to find the best widths to put in the
srcset attribute of a responsive image:
- take Real User Monitoring (RUM) of viewport widths and screen densities
- list the image’s widths across all of these viewport widths
- compute the optimal image widths to put in the
srcsetattribute to cover all these needs
Learn more in the full documentation.
From your command line, install
daltons as a global package:
npm i -g github:cleverage/daltons
Then run it with the
-h option to get help:
npx daltons -h
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Sizer-Soze, developed by Yoav Weiss, “is a utility that enables you to evaluate how much you could save by properly resizing your images to match their display size on various viewports”.
- imaging-heap, developed by Zach Leatherman is “a command line tool to measure the efficiency of your responsive image markup across viewport sizes and device pixel ratios”.