unscriptable/curl — Issue #32: YepNope Syntax
Author: Filirom1
Created: 2011-11-26 13:53:31+00:00
State: open

Hi,

Something I found useful in requireJs and I don't find in curl.js is the YepNope syntax.

For exemple, if I depend on polyfill before loading my app, I can do something like this with RequireJs :

require([
window.fn1 ? '' : 'js!fn1.js',
JSON.parse ? '' : 'js!fn2.js'
], function(){
console.log('Loaded');
})

The empty string and the null value does not work well with curl.js