Created
January 24, 2019 18:26
-
-
Save icehongssii/885becad23e44ae15d8e4fc86991c48a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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