Last active
October 9, 2018 02:54
-
-
Save Zizzamia/9588de9385c17ecd642d4859fb1472a2 to your computer and use it in GitHub Desktop.
TTI Perfume demo
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
<head> | |
<script src="perfume.js"></script> | |
<style>body { background: #f2db77; ... } .progress { ... }</style> | |
</head> | |
<body> | |
... | |
<script> | |
const perfume = new Perfume({ | |
timeToInteractive: true, | |
}); | |
setTimeout(() => { | |
const elValue = document.querySelector('.js-tti-value'); | |
elValue.textContent = perfume.timeToInteractiveDuration + 'ms'; | |
}, 10000); | |
... | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment