My durandal based SPA makes various asynchronous async calls in the viewmodels model activation function. I am returning a promise using Q from the activation function.
function activate(){ return Q.fcall(['getPersons', 'getAgenda']); } function getPersons(){ var defer = Q.defer(); $.ajax({
A similar code exists in the getAgenda function. It all works great and my screen goes over. The problem is that my getAgenda takes some time (2 to 3 seconds). The screensaver does not appear, the screen remains where it was for 2 or 3 seconds before moving on.
my splash screen is simple and shows how the site loads for the first time. Any ideas?
source share