Open dizzib opened 11 years ago
Hello Andy,
This sounds like a great feature! However, my schedule is jam packed at the moment.
Is this something you'd use right away? If so, I could help you build a shim or moduleLoader that implements this behavior.
Can you outline the specifications for the exact behavior you'd like to see?
Thanks!
-- John
It seems Requirejs can accept an array of urls so perhaps curl could do likewise ?
No urgency, but I may poke around the code if I have time :) Cheers!
Hey Andy,
This is a cool idea, but let's implement it a d a shim or transform. Take a look at some of the built-in shims and transforms and see what you think.
Hmmm… a transform seems pretty interesting to me. Oops I see they're still called "loaders" in the dev branch. Doesn't matter, they're the same thing.
If you do any work, please do it against the dev branch and submit a pull request there.
Thanks!!
-- John
Sent from planet earth
On Nov 20, 2012, at 7:34 AM, Andy notifications@github.com wrote:
It seems Requirejs can accept an array of urls so perhaps curl could do likewise ?
No urgency, but I may poke around the code if I have time :) Cheers!
— Reply to this email directly or view it on GitHubhttps://github.com/cujojs/curl/issues/157#issuecomment-10552373.
Curling files off CDN can fail e.g. if google is banned in China.
Rather than erroring immediately, it would be handy if one or more fallback urls could be tried first, ideally in a given order.