This repository was archived by the owner on Jul 24, 2020. It is now read-only.
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
Auto-Image Compression #545
Open
Description
I was thinking about small ways to improve loading times and general speed/responsiveness of Reservations, and I think there are a few things that we can do fairly easily (and some less fairly easily) to dramatically cut down on the amount of information served per page request.
- Minify JS on production deployment. Things like application.js go down from 10kb to 5kb. The compiled CSS is already minified.
- Reduce the number of items loaded on the front page. We should find out from users how they like to browse (do they like scrolling? is it so bad to just have... more pages? Also, this is getting into separate-issue territory but reorganizing the front page to make navigation by category easier would probably solve this as well..but that's complicated)
- Reduce the size of the images loaded. This falls into admin territory (sort of) but I noticed that (at least on the Art school instance) most of the images are pngs. If the admin uploaded only jpegs then it wouldn't really be an issue, but images like this are 30-40kb when they could be ~10kb with no noticeable difference in quality. The front page of the Art school instance has 50 items, at 30kb each that's 1.5mb just of images that needs to be downloaded to the browser. Yes, there's caching, but if those were jpegs then we'd be down to just 500kb. Possible solution: use something like this to automatically convert admin-uploaded images to jpegs.
My apologies if any of these issues have already been discussed but I couldn't find anything with a quick search
Activity