Skip to content

Instantly share code, notes, and snippets.

@kadukf
Last active December 28, 2015 15:49
Show Gist options
  • Save kadukf/7524695 to your computer and use it in GitHub Desktop.
Save kadukf/7524695 to your computer and use it in GitHub Desktop.
using WinJS._Signal
var loadedSignal = new WinJS._Signal();
document.addEventListener("load", function () { loadedSignal.complete(); });
function loadDataAsync() {
return WinJS.xhr("uri");
}
//setup code
loadedSignal.promise
.then(loadDataAsync)
.then(processData);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment