mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-24 05:02:10 +00:00
Fix lighthouse again
This commit is contained in:
parent
35642e698a
commit
39818533a1
1 changed files with 20 additions and 12 deletions
|
@ -3,8 +3,6 @@ ci:
|
||||||
assert:
|
assert:
|
||||||
preset: lighthouse:recommended
|
preset: lighthouse:recommended
|
||||||
assertions:
|
assertions:
|
||||||
installable-manifest: "off" # not a PWA
|
|
||||||
offline-start-url: "off" # not a PWA
|
|
||||||
performance-budget: "error"
|
performance-budget: "error"
|
||||||
render-blocking-resources:
|
render-blocking-resources:
|
||||||
- warn
|
- warn
|
||||||
|
@ -31,22 +29,32 @@ ci:
|
||||||
cumulative-layout-shift:
|
cumulative-layout-shift:
|
||||||
- warn
|
- warn
|
||||||
- maxNumericValue: 0
|
- maxNumericValue: 0
|
||||||
|
robots-txt: "off" # Lighthouse bug: CSP makes this impossible
|
||||||
|
canonical: "off" # staging site has no rel=canonical
|
||||||
|
is-crawlable: "off" # staging site isn't crawlable
|
||||||
|
service-worker: "off" # not a PWA
|
||||||
|
works-offline: "off" # not a PWA
|
||||||
|
installable-manifest: "off" # not a PWA
|
||||||
|
splash-screen: "off" # not a PWA
|
||||||
|
themed-omnibox: "off" # not a PWA
|
||||||
|
offline-start-url: "off" # not a pwa
|
||||||
|
offscreen-images: "off" # antipattern: see my article on best practices for textual websites
|
||||||
collect:
|
collect:
|
||||||
method: node
|
method: node
|
||||||
settings:
|
settings:
|
||||||
budgetPath: budget.json
|
budgetPath: budget.json
|
||||||
chromeFlags: "--disable-gpu --no-sandbox --disable-extensions --no-first-run --headless"
|
chromeFlags: "--disable-gpu --no-sandbox --disable-extensions --no-first-run --headless"
|
||||||
skipAudits:
|
skipAudits:
|
||||||
- robots-txt # Lighthouse bug: CSP makes this impossible
|
- robots-txt
|
||||||
- canonical # staging site has no rel=canonical
|
- canonical
|
||||||
- is-crawlable # staging site isn't crawlable
|
- is-crawlable
|
||||||
- service-worker # not a PWA
|
- service-worker
|
||||||
- works-offline # not a PWA
|
- works-offline
|
||||||
- installable-manifest # not a PWA
|
- installable-manifest
|
||||||
- splash-screen # not a PWA
|
- splash-screen
|
||||||
- themed-omnibox # not a PWA
|
- themed-omnibox
|
||||||
- offline-start-url # not a pwa
|
- offline-start-url
|
||||||
- offscreen-images # antipattern: see my articlec on best practices for textual websites
|
- offscreen-images
|
||||||
throttling:
|
throttling:
|
||||||
cpuSlowdownMultiplier: 1.2 # seems about right on builds.sr.ht
|
cpuSlowdownMultiplier: 1.2 # seems about right on builds.sr.ht
|
||||||
throttlingMethod: devtools
|
throttlingMethod: devtools
|
||||||
|
|
Loading…
Reference in a new issue