Is there any way to have requireJS optionally (like maybe through a plugin) return null for a dependency that failed with a 404?
For example:
require(["allow404!myscript"], function(myscript){
console.info(myscript); // myscript should be null if myscript doesn't exist
});