Change splashscreen hide to onload