diff --git a/docs/LIGHTHOUSE_CONFIG.md b/docs/LIGHTHOUSE_CONFIG.md new file mode 100644 index 0000000..1169b64 --- /dev/null +++ b/docs/LIGHTHOUSE_CONFIG.md @@ -0,0 +1,18 @@ +# Lighthouse CI Configuration + +## Disabled Assertions + +| Assertion | Reason | +|-----------|--------| +| `uses-text-compression` | Cloudflare handles compression at edge | +| `unused-css-rules` | Google Fonts CSS includes styles for all unicode ranges (especially Noto Sans JP) | +| `unused-javascript` | Code splitting causes "unused" JS on initial page load, but chunks are used on other routes | +| `render-blocking-resources` | Returns NaN in SPA configuration | + +## Thresholds + +- **LCP**: < 2.5s (error) +- **CLS**: < 0.1 (error) +- **FCP**: < 2s (warn) +- **TBT**: < 300ms (warn) +- **Category scores**: ≥ 90% (accessibility is error, others are warn) diff --git a/lighthouserc.json b/lighthouserc.json index 52f47bc..059337b 100644 --- a/lighthouserc.json +++ b/lighthouserc.json @@ -23,9 +23,9 @@ "uses-text-compression": "off", "uses-responsive-images": "warn", "offscreen-images": "warn", - "unused-javascript": "warn", - "unused-css-rules": "warn", - "render-blocking-resources": "warn" + "unused-javascript": "off", + "unused-css-rules": "off", + "render-blocking-resources": "off" } }, "upload": { diff --git a/src/client/index.html b/src/client/index.html index f245218..3b0ff46 100644 --- a/src/client/index.html +++ b/src/client/index.html @@ -117,10 +117,11 @@ - - + + +