When a required script doesn't load, the callback fires even if the script load fails (404):
function callback () {
console.log('callback,', arguments);
}
head.test({
test: 1 === 1,
success: ["/non-existant.js"],
failure: [],
callback: callback
});
In the above example, the console outputs this regardless of whether or not the script file is loaded:
callback, []
Is there a way to handle that?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4