Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

curl downloads `preload` modules even if they're built-in to curl.js file #46

unscriptable opened this Issue Jan 9, 2012 · 0 comments


None yet
1 participant

unscriptable commented Jan 9, 2012

This happens when using one of the dist/ versions of curl and the new preload feature at the same time. curl starts processing the modules specified in the preload array before the browser finishes executing the curl.js file. Therefore, it starts downloading the preload modules before the define() calls for those same modules are executed in the curl.js file.

This only happens when using curl = { /* config with preloads */ };, not when using curl({ /* config with preloads */ }, deps, cb);.

@ghost ghost assigned unscriptable Jan 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment