Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Auto-compressed many marketing pages images with ImageOptim; resized some large headshots and one jumbotron.
I noticed while evaluating China bandwidth needs that some of these images are much bigger than they need to be, with some images clocking in at 4.5MB or 9.5MB. When Dexecure is enabled, it mostly takes care of auto-resizing and auto-compressing these, but it doesn't always get everything, some race condition for the first images to be requested on home page perhaps. When we are in China mode, we have not yet enabled Dexecure, so our users bear the brunt of large image downloads.
ImageOptim is an automatic image filesize compressor program that makes images as small as it can without changing quality, dimensions, or file format. I dropped several marketing page folders' worth of images in there after a quick look on where some big ones are.
I also resized some avatars on /about from full resolution to the 100px squares that the other ones on that page are at. And I resized the max width of /parents page jumbotron from almost 5000 pixels to 2560px like our home page jumbotron.
Overall, this should save user some bandwidth, especially when Dexecure isn't around, with no compatibility issues.