Skip to content

perf/a11y: convert logo+footer to WebP, fix viewport zoom#89

Merged
Smana merged 1 commit into
mainfrom
perf/logo-viewport
Apr 29, 2026
Merged

perf/a11y: convert logo+footer to WebP, fix viewport zoom#89
Smana merged 1 commit into
mainfrom
perf/logo-viewport

Conversation

@Smana
Copy link
Copy Markdown
Owner

@Smana Smana commented Apr 29, 2026

Summary

Lighthouse audit found three issues loading on every page of the site:

Static asset sizes (before → after)

Asset Format Before After Saving
logos/logo.png 6275×1820px PNG 133 KB 7 KB 95%
icons/footer.png 4096×4096px PNG 140 KB 3 KB 98%

Both were massively oversized relative to their display dimensions (~200px and ~64px respectively). Resized appropriately and converted to WebP.

Viewport meta fix

Removed user-scalable=no and maximum-scale=1.0 from the viewport meta tag.

  • Was preventing pinch-to-zoom for users who need it
  • Lighthouse scored this 0/100 on accessibility

Test plan

  • hugo --minify completes without errors
  • Logo renders correctly in header (check dark and light modes)
  • Footer icon renders correctly
  • Pinch-to-zoom works on mobile
  • Lighthouse accessibility score improves (viewport audit should pass)

- logo.png (133KB, 6275px wide) → logo.webp (7KB, 400px) — 95% smaller
- footer.png (140KB, 4096px) → footer.webp (3KB, 128px) — 98% smaller
- Remove user-scalable=no and maximum-scale=1.0 from viewport meta
  (was blocking pinch-to-zoom, failing Lighthouse accessibility audit)
@Smana Smana merged commit e36b7bb into main Apr 29, 2026
1 check passed
@Smana Smana deleted the perf/logo-viewport branch April 29, 2026 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant