Skip to content

Instantly share code, notes, and snippets.

@brandonsheppard
Last active November 23, 2017 23:46
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 brandonsheppard/0af803c74de700f695f8547f11e12800 to your computer and use it in GitHub Desktop.
Save brandonsheppard/0af803c74de700f695f8547f11e12800 to your computer and use it in GitHub Desktop.
Simple form event logging with Performance Web API and jQuery
// Run on page load
$('input').on('focus blur',function(e){
performance.mark(e.type+ ' ' + e.target.name)
});
// Run to see results
console.table(performance.getEntriesByType('mark'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment