- Symptom
- Uncaught TypeError: t.composedPath(...)[0].getRootNode is not a functionError shows in session replay tools but real clicks work
- Cause
- WP Rocket's delayed-JS handler calls getRootNode on the event target without checking it is a Node. An event dispatched on window has no getRootNode, so synthetic events throw; real clicks on page elements do not.
- Fix
- Do not treat it as a broken button. Reproduce with a real click, not window.dispatchEvent.
- Apply
Test with a real pointer click in a browser automation tool rather than window.dispatchEvent(new Event('click'))- Affected
- WP Rocket delay JS, August 2026
Last verified 2026-08-19 · Confirmed by 0 builders