Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide statistics on devicePixelRatio (for Retina / high DPI / smartphone displays) #12392
In addition to the Screen Resolution statistics, provide statistics on the value of devicePixelRatio, giving an indication of how "sharp" the visitors' displays are. This applies in particular to Retina / high DPI / smartphone displays. Using these stats, one can assess how rewarding it would be to provide high resolution images.
As the value of devicePixelRatio is an arbitrary decimal, maybe use ranges, e.g. 1<x<=1.5, 1.5<x<=2, 2<x<=3, 3<x<=4, , and so on. The current Page zoom also influences the devicePixelRatio, but this means that the user would like to see more or less detail, so it's actually nice to include that.
This improvement was also suggested at the very end of:
It should be pretty easy to write a plugin which does this report.