I am currently researching better ways to accomplish pre-loading of images and thought perhaps using web workers would be a more ideal way. However, I am not sure that it is. Is there any specific benefit in terms of performance and user experience using background workers versus classic-style pre-loading? Which is better?
function preloadBackground(a) {
new d(window.URL.createObjectURL(
new Blob([
"(function () {" +
"var x = new XMLHttpRequest();" +
"x.responseType = 'blob';" +
"x.open('GET', '" + a + "', true);" +
"x.send();" +
"}());\n"], { type: "text/javascript" })
)
)
}
function preloadClassic(a) {
var i = new Image();
i.src = a;
}