justin avery
Dec 23, 2018 · 1 min read

A performance metric bar with a streaming FPS graph.github.com/okor/justice | @okor

How to use

<script type="text/javascript" src="justice.min.js"></script>
  <script type="text/javascript">

With options

<script type="text/javascript" src="justice.min.js"></script>
  <script type="text/javascript">
      metrics: {
        TTFB:             { budget: 200   },
        domInteractive:   { budget: 250   },
        domComplete:      { budget: 800   },
        firstPaint:       { budget: 1000  },
        pageLoad:         { budget: 2000  },
        requests:         { budget: 6     },
      warnThreshold: 0.8,
      showFPS: true,
      chartType: 'spline'

Originally published at Surf the Dream.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store