require try catch js code example
Example: requirejs catch
require([path], function(content){
//need to catch errors as this will not be called;
}, function (err) {
//display error to user
});
require([path], function(content){
//need to catch errors as this will not be called;
}, function (err) {
//display error to user
});