The PNG fallbacks were carrying 80% of the gallery's bundled weight (16 MB of 20 MB) and serving virtually no traffic — WebP is supported on ~97% of in-use browsers, and the few hold-outs (very old Safari) fall through to the CircuitPreview SVG mock via the existing onError handler. No visual regression for modern browsers. Numbers: - before: 258 files, ~20 MB total - after: 129 files, ~3.6 MB total (avg 28.6 KB / WebP) ExampleThumbnail simplified: drops the <picture>/<source> wrap around the WebP <source> + PNG fallback, just renders the WebP <img> directly with onError → CircuitPreview. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| boards | ||
| component-svgs | ||
| examples-thumbs | ||
| firmware | ||
| fonts | ||
| marketing | ||
| android-chrome-192.png | ||
| android-chrome-512.png | ||
| apple-touch-icon.png | ||
| components-metadata.json | ||
| favicon-16x16.png | ||
| favicon-32x32.png | ||
| favicon-48x48.png | ||
| favicon.ico | ||
| favicon.svg | ||
| image.png | ||
| image.webp | ||
| manifest.webmanifest | ||
| og-image.png | ||
| og-image.svg | ||
| robots.txt | ||
| sitemap.xml | ||
| vite.svg | ||