News for hackers. Stuff that matters.
Re:Don’t use JPEG-XR on the Web by mbell on Monday December 31, 2018 @12:42PM (#18795749)
This has been a solved problem for years in some frameworks, e.g. all the major image upload handling libraries in Rails have this built in an it's very easy to use. There are also plenty of webpack plugins for static assets:

https://github.com/metalabdesign/sharp-loader

https://github.com/herrstucki/responsive-loader

https://github.com/tcoopman/image-webpack-loader

(and many more, just grabbing a few examples)

Re:Don’t use JPEG-XR on the Web by JimDabell on Monday December 31, 2018 @12:48PM (#18795784)
Webpack also warns you about large assets by default, although the limit is 250KB, which isn't great.