Last active
November 23, 2017 23:46
-
-
Save brandonsheppard/0af803c74de700f695f8547f11e12800 to your computer and use it in GitHub Desktop.
Simple form event logging with Performance Web API and jQuery
This file contains hidden or 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
// 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