问题
When looking at a Chrome Dev Tools timeline I noticed that there was a "Hit Test" entry every time somethings happens:
Does anyone know what it is? I've done my googling, but am still at a loss.
Thanks!
回答1:
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.
来源:https://stackoverflow.com/questions/33174286/what-is-the-chrome-dev-tools-hit-test-timeline-entry