Skip to content

Instantly share code, notes, and snippets.

@Fintan
Last active June 20, 2019 12:45
Show Gist options
  • Save Fintan/e64953531a378e9595998a661cd50531 to your computer and use it in GitHub Desktop.
Save Fintan/e64953531a378e9595998a661cd50531 to your computer and use it in GitHub Desktop.
//User Timing API (gets included in Lighthouse json output)
// https://developers.google.com/web/tools/lighthouse/
// https://www.html5rocks.com/en/tutorials/webperformance/usertiming/
window.performance.mark('mark_before_createWidget');
createWidget();
window.performance.mark('mark_after_createWidget');
window.performance.measure('mark_before_createWidget', 'mark_after_createWidget');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment