Skip to content

Instantly share code, notes, and snippets.

@blixxurd
Last active February 8, 2021 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blixxurd/12f60480808332efbef1c9f1e0405496 to your computer and use it in GitHub Desktop.
Save blixxurd/12f60480808332efbef1c9f1e0405496 to your computer and use it in GitHub Desktop.
Implementation of PolyVitals
<!-- Add right before </body> -->
<!-- PolyVitals Start -->
<script src="https://d1y9rhsa9a8h4o.cloudfront.net/polyvitals-1.0.5.min.js"></script>
<script>
if(typeof window.PolyVitals !== 'undefined') {
window.PolyVitals.init();
window.addEventListener('DOMContentLoaded', function() {
try {
window.PolyVitals.report();
} catch(e) {
console.error(e);
}
});
}
</script>
<!-- PolyVitals End -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment