Shrink the documentation images and fix two links - #279
Merged
Merged
Conversation
logo.png was 359 KB of 410x477 artwork rendered at 28 CSS pixels in the header of every page, so it outweighed the HTML it sits in. It is now 206x240 on a 256 colour palette, at 15 KB. The screenshots and the workflow diagram are palettised the same way, taking the six of them from 654 KB to 253 KB. Text in the AWS console screenshots is unaffected; the artwork loses its film grain. social-card.png is left as it is. Only scrapers ever fetch it, so its weight costs no visitor anything, and a 256 colour palette bands its blurred backdrop badly. Every content image now carries width and height so the browser can reserve space for it while it loads. The theme sets height:auto, so the attributes supply an aspect ratio rather than a fixed size. Three different screenshots shared the alt text "AWS Console". Each one now says what is in frame.
The "unlike Cloud Carbon Footprint" bullet named the project without linking to the page that covers it, which is the page most likely to be searched for. report.py wrote an http link to the documentation into every generated report, one redirect away from the canonical https URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Follow-up to the SEO work in #268, #269 and #277, from a review of what those left behind.
logo.pngwas 359 KB of 410x477 artwork rendered at 28 CSS pixels in the header of every page, so it outweighed the HTML around it. Resized to 206x240 on a 256 colour palette it is 15 KB. The screenshots and the workflow diagram are palettised the same way: 654 KB down to 253 KB for the six of them. Console screenshot text is unaffected, the artwork loses its film grain.social-card.pngis deliberately untouched. Only scrapers fetch it, so its 785 KB costs no visitor anything, and a 256 colour palette bands its blurred backdrop badly.Every content image now carries
widthandheight, so the browser reserves space for it while it loads instead of reflowing the page. The theme already setsheight:auto, so the attributes supply an aspect ratio rather than a fixed size.Three different screenshots shared the alt text "AWS Console". Each now describes what is in frame.
Two link fixes: the "unlike Cloud Carbon Footprint" bullet on the home page now links to the comparison page, which is the page most likely to be searched for; and
reporting/report.pyno longer writes an http link into every generated report.Checked with a
zensical build --clean --strictand by rendering the pages locally: aspect ratios match the source images and nothing reflows.