In Defence of DOMContentLoaded
Hacker News
JUNE 30, 2023
Google Analytics Until recently , Google Analytics also surfaces DOMContentLoaded information. Very, very crudely, with no syntactic sugar whatsoever, you can get the page’s DOMContentLoaded event in milliseconds with the following: console. function wait ( ms ) { var start = Date. domInteractive + ' ms ' )); console.
Let's personalize your content