boot-sniffConfig.html
729 Bytes
<html>
<head>
<script>
function userConfigCallback(){
console.log("honored user config callback");
try{
require("dojo/AdapterRegistry");
console.log("honored user config");
}catch(e){
console.log("DID NOT honor user config");
}
}
function sniffConfigCallback(){
console.log("honored sniff config callback");
try{
require("dojo/back");
console.log("honored sniff config");
}catch(e){
console.log("DID NOT honor sniff config");
}
}
var require = {
deps:["dojo/AdapterRegistry"],
callback:userConfigCallback
};
</script>
<script src="../../../dojo.js" data-dojo-config="deps:['dojo/back'], callback:sniffConfigCallback"></script>
</head>
<body>
</body>
</html>