Skip to content

Instantly share code, notes, and snippets.

@icehongssii
Created January 24, 2019 18:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icehongssii/885becad23e44ae15d8e4fc86991c48a to your computer and use it in GitHub Desktop.
Save icehongssii/885becad23e44ae15d8e4fc86991c48a to your computer and use it in GitHub Desktop.
loadScript('first.js', function(err,script){
if(err){
//error handling
//fail to load 1st script
}else{
loadScript('second.js', function(err,script){
if(err){
//error handling
//fail to load 2nd script
}else{
loadScript('third.js', function(err,script){
if(err){
//error handling
//fail to load 3rd script
}else{
//.................................
}
})
}
})
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment