Why Turbo Uses Event Capturing
I was reading the source of the Turbo library and came across following code in link_click_observer.ts, which executes whenever the session starts (when the page loads) and Turbo starts observing the links and forms:
start() {
if (!this.started) {
addEventListener("click", this.clickCaptured, true)
this.started = true
}
}
clickCaptured