Skip to content

epic: addressing Google Lighthouse audits #250

Open
@jamesericdavidson

Description

@jamesericdavidson

To-do

  • HTML output minification (CSS/JS assets are already minified) ➡️ feat(config): minify exampleSite HTML output #251
    • Are XML (sitemap, RSS), SVG (icons), and JSON assets minified?
  • Asset compression Achieved by Netlify (moved to docs(advanced): rewrite & expand #277)
  • Background-to-foreground colour ratio is insufficient:
    • Syntax highlighting/code blocks Dependent on upstream - wontfix
    • .post-date (dark mode & light mode)
    • Blockquotes (light mode)
    • tableOfContents hoverOver colour (light mode)
  • Automatically convert between image formats
    Affects Theme Documentation - Advanced
  • Test exampleSite in light mode (desktop, mobile)
  • Update Lighthouse screenshot

Problem Statement

The README mentions the Google Lighthouse score for exampleSite. Without context, the user could believe that Gokarna's performance is "baked in", and requires no action on their part.

Moreover, Lighthouse continues to identify minor issues with Gokarna, which can be either avoided in source code, or by virtue of how the site is deployed.

Please read and discuss below if this is of interest. 👇

User sites

Unless we direct users to evaluate their site with Lighthouse (and highlight the benefits of doing so), some site configurations will be less than ideal.

e.g. Users who do not resize images, or use "modern" formats (such as WebP), are penalised.

Suggestion: Some site-level changes are easy to make statically (i.e. without the use of CDNs, load balancers, and other at-scale deployment mechanisms), and should be performed in code, or recommended in the Gokarna docs.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions