CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript frameworks (http://www.codingforums.com/forumdisplay.php?f=62)
-   -   Yepnope js multiple files loading (http://www.codingforums.com/showthread.php?t=282195)

mrbean 11-14-2012 09:01 PM

Yepnope js multiple files loading
 
I have a list of js files:

1.js
2.js
3.js
4.js
5.js
6.js
etc

I want to load it on order, from 1 to 6. If I do it this way:

Code:

yepnope({
  load: '1.js',
  complete: function() {
    next();
  },
});
function next(){
yepnope({
  load: '2.js',
  complete: function() {
    next2();
  },
});
}

I will be coding ridicules much codes. Does anyone have an solution?


All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.