try and catch require 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
});