In Defence of DOMContentLoaded
CSS Wizardry
JUNE 30, 2023
Honestly, I started writing this article, for no real reason and somewhat without context, in December 2022—over half a year ago! More accurately, DOMContentLoaded signifies that all blocking and defer and type=module code has finished running. We might have a DOMContentLoaded at 5s, but did the code start running at 4.8s?
Let's personalize your content