Skip to content
Advertisement

Tag: domcontentloaded

Why DOMContentLoaded handler can block first paint?

There is a similar question that wasn’t resolved. I’ve encountered a situation when handler that listens to DOMContentLoaded can block first paint. Sometimes it blocks, sometimes it doesn’t I tried many times cmd + R to see it. Is there any explanation to this behaviuor? Also I recordered a video to show this: https://www.youtube.com/watch?v=EDZQ1nLCK2w&feature=youtu.be When you see a blank page

Advertisement