How can I execute my JavaScript after the HTML and other JavaScript has been parsed, but not wait on any other resources (images, stylesheets, etc.)? My JavaScript, which is a user script / Chrome extension, automates clicks on buttons which require other JavaScript to manipulate variables, but don't require other resources.
I am aware of the events load
and DomContentLoaded
. In my testing, DomContentLoaded
does not wait for all of the JS to be parsed. load
waits for everything, which is what I'm using now, but not what I want.