Last active
February 8, 2021 18:38
-
-
Save blixxurd/12f60480808332efbef1c9f1e0405496 to your computer and use it in GitHub Desktop.
Implementation of PolyVitals
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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