codeforboston/GovLens

Document how we are using Lighthouse

morisy opened this issue · 1 comments

Document how we are using Lighthouse
L-e-N commented

Lighthouse is a Google service that has 5 categories of information that can be pulled from a url

  • performance
  • accessibility
  • best_practices
  • pwa progressive web app : relatively fast, mobile friendly, secure origin some best practices
  • seo search engine optimization

The scrapers I coded use Google Lighthouse to get in the Progressive Web App mode or the performance mode. More precisely :
Accessibility scraper:
performance['audits']['speed-index']['score'] the time to interactive
performance['performance']['score'] the general performance
pwa['audits']['content-width']['title'] the mobile_friendliness

Security and privacy scraper:
pwa['audits']['is-on-https']['score'] https criteria
pwa['audits']['redirects-http']['score'] hsts criteria

I can detail more in a README file that I can push if you'd like!