Events Experiment

by Bacher

HTML

<input/>

JavaScript

$('INPUT').on('mousedown focusin click', function(e) {
    console.log(performance.now(), e.type);
    
    if (e.type === 'mousedown') {
        setTimeout(function() {
            console.log(performance.now(), 'TIMEOUT');
        }, 0);
    }
});