I already have code which lazy loads scripts on request. My issue now is waiting to execute certain code until the object becomes available. I can't use a setTimeout() because it does not block execution.
So what is a good way to 'wait' for a load, without locking the browser?
Again, can't use raw setTimeout().