SlexAxton/yepnope.js — Issue #90: Ambiguous usage as a user
Author: myok12
Created: 2012-02-14 15:10:37+00:00
State: open

I didn't find it clear from the readme or the website, which method of the following is preferred to use, especially if I would like to maintain the order of execution and use the complete callback. The help doesn't clearly state it, but the examples out for the second option. I prefer to use the first option as the complete makes more sense then. If both are equivalent, then it should say so somewhere.

Option 1:
yepnope({
load: ['1.js', '2.js', '3.js'],
complete: function() {
alert('all three files finished executing');
}
});

Option 2:
yepnope(['1.js', '2.js', {
load: '3.js',
complete: function() {
alert('last file just finished executing so all three files finished executing');
}
});

Also in the doc, it says that the yepnope separates loading and execution and allows customization. From all I see, you can't really control either loading or execution, but can only monitor, and even then, only the execution (which works for me).