Delay model loading for debug.html to work