Source: https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/tutorials/w3c_tutorial/storage_tutorial/app_cache_managing.htm
I would look at the App cache events, particularly the updateready
event.
document.body.style.display = 'none'; //this should probably be in your stylesheet.
applicationCache.addEventListener('cached', function() {
/* All resources for update are downloaded */
// show your webpage here
document.body.style.display = 'block';
});
You might need to also look at some of the other events that are listed in the linked reference. I don't know if this event will fire if they are no updates.
But there are several events for if there is no manifest file, or if there is no updates available, etc. Seems pretty straight forward though. If you have any quesetions, just comment.
EDIT
You will also need to listen for the noupdate
event to handle the case of the manifest not being updated. (Thank you @Applecot)
applicationCache.addEventListener('noupdate', function() {
//no updates, display the page
document.body.style.display = 'block';
});