23

When looking at a Chrome Dev Tools timeline I noticed that there was a "Hit Test" entry every time somethings happens:

enter image description here

Does anyone know what it is? I've done my googling, but am still at a loss.

Thanks!

1 Answer 1

26

A hit test is how a contact (mouse/touch) event is checked to see what it "hit" in the DOM.

https://www.chromium.org/developers/design-documents/compositor-hit-testing describes some of this.

2
  • Ah, of course. I should have tried searching a bit longer :) Thanks! Oct 21, 2015 at 12:58
  • Why is it coming up BEFORE the touchStart in our trace @Kariudo though? Jul 22, 2020 at 23:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.