blob: d38da8a4aca0eb812856ae6aad5f7075e823d104 [file] [log] [blame]
importScripts("resource-utilities.js");
function importScript() {
importScripts("worker-import-1.js");
}
onmessage = function(event) {
if (event.data === "loadResourceXHR")
loadResourceXHR("dataXHR.json");
else if (event.data === "loadResourceFetch")
loadResourceFetch("dataFetch.json");
else if (event.data === "importScript")
importScript();
}
postMessage("ready");