daltons
is a command-line tool that computes optimal image widths to put in srcset
attributes of responsive images.
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.
It takes 3 steps for daltons
to find the best widths to put in the srcset
attribute of a responsive image:
srcset
attribute to cover all these needsLearn more in the full documentation.
To install and run this application, you’ll need Node.js (which comes with npm) installed on your computer.
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
Or see detailed options in the full documentation and look at examples and use cases.
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.