-
Notifications
You must be signed in to change notification settings - Fork 28
Description
The phase between document.open and document.close takes a bit of time and a blank screen is shown for few milliseconds while the new document is loading. I would like to get rid of this white screen.
A rough solution is to use a splashscreen that covers everything until the end of hijacking. However, I'd prefer to show a loading indicator instead of a fixed picture. I googled a bit and it seems that it is possible to have animated native splashscreen in Android, but I'd prefer to not write native code.
Immediately after document.close, document.readyState is 'loading', not 'complete'. I guess document.{close,open} are async. I doubt a loader indicator can be shown while document is loading.
Does anyone have any idea about how to make dom loading as fast as possible?