SlexAxton / yepnope.js

A Script Loader For Your Conditional Builds
http://yepnopejs.com/
BSD 3-Clause "New" or "Revised" License
2.51k stars 323 forks source link

Load array in version 2.0 #222

Closed rhernandog closed 9 years ago

rhernandog commented 10 years ago

Hi,

I'd like to know if it's possible to load an array of files like in version 1.5:

yepnope(["file1.js","file2.js","file3.css"], {}, function(){
  //callback code
});

I don't care about the loading order, all I need is a callback once all the files are loaded.

Thanks, Rodrigo.

SlexAxton commented 9 years ago

The goal of yepnope 2 is to avoid loading multiple files like this. If you'd like this functionality, then use yepnope 1.x, but it may come with performance costs.