-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Load Order For JS Can Be Incorrect with Debugger on #158
Comments
Well it's weird. I've tried breaking the ordering and even used your exact example, but it always seems to order as expected for me. The only thing you are changing is the order? |
Yes, just switching the numbers switches the load order. It appears the 108 and 106 don't behave like even multiples of 10. I'll try some other numbers and see what I get. |
This one:
gives me captionate, jquery and then doubletaptogo! |
Ah! This is only when the debugger is on. I know what this is. Basically the debugger is adding jquery with a "101" order. As this added first, and duplicates are skipped, that explains why you are seeing this ordering weirdness when debugger is activated, and I was not seeing it when debugger was off. There's really only three options:
I'm leaning towards #3 as the best option. |
Fixed with commit commit f3d099e using approach 3 |
This code:
loads the JS in the order expected: jquery, captionate and then doubletaptogo.
This code:
loads the JS in an unexpected order: captionate, doubletaptogo, and then jquery.
The text was updated successfully, but these errors were encountered: