-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Global Callback when all scripts have finished Loading? #2
Comments
There is a global callback after a timeout, but I'm guessing that's not what you want. You could always monitor nbl.q to see if all scripts have loaded, or define a callback function for every script that checks nbl.q? I'll put it on the list for the next version, thanks! Just to be sure, how are you using NBL, perhaps I can come up with a solution in the meantime? |
Heya, thanks for replying. I was using NBL to load our app's js libraries at runtime; however, once all libraries had finished loading I needed to execute one last chunk of code to kick the whole thing off. At first I was using a sequence similar to this:
However the
I'm afraid I had to switch to LAB.js because of this missing feature, however, my first choice was NBL due to its compact size (I need to inline the code into my project's bootstrap). |
I get it, it' a fair point. I haven't run into this issue myself, but in retrospect, I don't understand why I did not put in that feature in the first place! This is going to the top of the list, thanks. Would you like me to contact you when I've fixed this? |
Yes please; although if I get some free time I will have a stab at writing the code in a fork :) Thanks for your hard work on this library and your swift replies. |
I'm looking for a way to get a global callback when all of my scripts have finished loading asynchronously, is this possible?
The text was updated successfully, but these errors were encountered: