项目作者: ebidel

项目描述 :
Lighthouse score badge
高级语言: HTML
项目地址: git://github.com/ebidel/lighthouse-badge.git
创建时间: 2018-02-27T01:41:28Z
项目社区:https://github.com/ebidel/lighthouse-badge

开源协议:Apache License 2.0

下载


Lighthouse score badges

Be proud of your Lighthouse score! Display
this badge in a Github readme, on your site, in a presentation,…wherever.

Large:

Lighthouse score: 100/100
Lighthouse score: 65/100
Lighthouse score: 35/100

Compact:

Lighthouse score: 100/100
Lighthouse score: 65/100
Lighthouse score: 35/100

Include category:

Lighthouse score: 85/100
Lighthouse score: 85/100

Examples

API: https://lighthouse-badge.appspot.com/?score=<SCORE>[&compact]

Parameters:

  • score: required. set from [0,100].
  • compact: optional. Renders smaller image instead.
  • category: optional. Specify a report section label (e.g. “PWA”, “Perf”, “A11y”, “Best Practices”)

Markdown

  1. [![Lighthouse score: 100/100](https://lighthouse-badge.appspot.com/?score=100)](https://github.com/ebidel/lighthouse-badge)
  1. [![Lighthouse score: 85/100](https://lighthouse-badge.appspot.com/?score=85&compact&category=PWA)](https://github.com/ebidel/lighthouse-badge)
  1. [![Lighthouse score: 65/100](https://lighthouse-badge.appspot.com/?score=65&compact)](https://github.com/ebidel/lighthouse-badge)

HTML

  1. <a href="https://github.com/ebidel/lighthouse-badge" target="_blank" rel="noopener">
  2. <img src="https://lighthouse-badge.appspot.com?score=100">
  3. </a>
  1. <a href="https://github.com/ebidel/lighthouse-badge" target="_blank" rel="noopener">
  2. <img src="https://lighthouse-badge.appspot.com?score=85&category=PWA">
  3. </a>
  1. <a href="https://github.com/ebidel/lighthouse-badge" target="_blank" rel="noopener">
  2. <img src="https://lighthouse-badge.appspot.com?score=165&compact">
  3. </a>