cujojs / curl

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.
https://github.com/cujojs/curl/wiki
Other
1.89k stars 216 forks source link

please add instructions for loading curl-debug into the docs #170

Closed jcollum closed 11 years ago

jcollum commented 11 years ago

The docs don't explain how to use curl-debug to see what curl is doing. I have a script that is loading out of order and need to see what's happening. I have used the debug module before but don't have that code handy.

Googleing "curl debug" doesn't work. This app has a big google problem. Naming your app after a common unix app is a bad idea.

jcollum commented 11 years ago

In case anyone else needs it, the syntax looks like:

  script(src='/lib/curl-ksink-min.js')
    script
      curl({ preloads: ['/lib/curl-debug.js'] },  ['js!//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.min.js'] ... etc)
unscriptable commented 11 years ago

I added a debugging page to the wiki. -- John