-
Notifications
You must be signed in to change notification settings - Fork 68
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
Issue 20 #21
Issue 20 #21
Conversation
My mistake...didn't realize my pull request would create a new issue. |
No worries, Jeremy, I appreciate the pull request, with unit tests! What a n00b mistake on my part :) Sorry for any headaches this caused you. I'll take a look at it in the morning and hopefully get it merged in. |
… tests. Dojo seems to be causing long load times with curl and requirejs seems to fail to load parts of dojo. Unit tests pass in curl, but fail in requirejs due to dojo relying on require.ready, which appears to be specific to the dojo loader now.
Thanks, Brian. Out of curiosity, are you using seeing the slow loading problem with Dojo 1.6 or 1.7? I originally made the fix in my project that uses 1.7, but did my testing for the pull request against 1.6 and didn't notice the issue. |
@briancavalier i didn't dig very deep but it's possible that dojo is loading in sync mode due to the loading it via another loader. this causes it to load all of dojo base via synchronous xhr which is likely going to take a while. if that's the issue, the fix would be to set the global |
@neonstalwart Thanks! I'll give that a try. Will that option affect sync/async loading even if dojo is being loaded by another loader, like curl or requirejs? @jeremyg484 I'm seeing it with dojo 1.6.1. I can try 1.7 as well and see if it's similar. |
@briancavalier sorry... i'm misleading you and confusing myself. let me start over - ignore my previous comment about i see the a better dependency in this case would be btw, all of this is only relevant to dojo 1.7 and personally i wouldn't even try with 1.6 but if you need to support that then good luck but that's almost like trying to support 2 different libraries rather than 2 versions of the same library since, with respect to AMD, modules changed significantly from 1.6 to 1.7 |
Ah, thanks for the detailed explanation, Ben, that makes sense. When I first wrote wire's dojo pubsub plugins, dojo 1.6 was the official release so that's what I coded against. I'd love to update the plugin to take advantage of |
@neonstalwart just to confirm: |
@unscriptable right - however, i don't know what kind of mileage you'll get by trying to load dojo/dijit without using dojo's loader - nobody that i know of has tried to find all the dark corners you might come across. hopefully its not too ugly but feel free to contact me if you've got questions. |
Includes: