WebSite Performance Improvement - Lighthouse

2021/3/41 min read
bookmark this
Responsive image

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}`);