Jump to content

Check if elements are loaded in a userscript

Acorn Eyes

I'm trying to make a user script for a website which loads all the elements then starts an animation to load the rest of the elements into view.

 

I want to execute most of my script as soon as it loads, but its all messed up if it doesn't load immediately.

 

Is there any way to pause the script until a random element is inside the DOM?

Don't talk about stale memes.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×