WebSite Performance Improvement - Lighthouse

2021/3/4·1 min read

Enable text compression

const compression = require('compression');
app.use(compression());

Reduce unused CSS

make sure all CSS is minified as a bundle

Reduce unused Javascript

defer loading scripts for google ads or google analytics

Color Contrast Checker

https://coolors.co/contrast-checker/000000-08a045

Browser Cache - Disk Cache

  res.set('Cache-control', `public, max-age=${period}`);