I wanted to check article on one news website, which had pretty annoying popup forcing me to disable addblock, so I quickly wrote a browser extension to remove it.
This made me thinking - I need to ensure news website loaded, cuz im manipulating with its DOM, which I carelessly acchieved by setting timeout.
Maybe theres any better way?