Scheduler dhx.ready not fired

I use Scheduler in mvc mobile application.After login i redirect to scheduler page but scheduler
dhx.ready(function () {} not fired and page not rendered. but after again refresh the scheduler page dhx.ready(function () {} fired. Please suggest how I resolve this problem?

Hello,

please provide the complete demo that reproduces the problem.