D
D
DiseaseC2020-04-23 14:40:43
JavaScript
DiseaseC, 2020-04-23 14:40:43

JavaScript - how to get the time from page initialization to the first user click?

The click can be anywhere on the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-04-23
@DiseaseC

document.addEventListener('click', () => console.log(performance.now()), { once: true });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question