Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-14-2012, 09:01 PM   PM User | #1
mrbean
New Coder

 
Join Date: Aug 2012
Posts: 37
Thanks: 5
Thanked 0 Times in 0 Posts
mrbean is an unknown quantity at this point
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?
mrbean is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:18 AM.


Advertisement
Log in to turn off these ads.