Preloading Of Html Web Page Or Non-flash Web Applications?
Solution 1:
Due to the stateless nature of the HTTP protocol, pre-loading webpages could be challenging. One way to achieve this would be to have a minimal HTML sent to the client initially and then progressively enhance parts of the site using AJAX. During the time those AJAX requests are being executed you could have some spinner on the page saying that the site is being loaded, but if you want to have real progress bars (such as the one GMail uses) things become even more challenging.
Solution 2:
Google uses AJAX requests on GMail, you could do the same with jQuery. If you wanted to replace the entire code between on a page.
functionpreload(url2load,anyDataIfAny) {
$.ajax({
type: 'POST',
url: url2load,
data: anyDataIfAny,
success: function(data) {
$(html).html(data);
}
});
}
This will show the user the loading screen until the page is loaded, then replace the loading screen with the requesting code.
Solution 3:
Solution 4:
Depends alot on what you want to achieve..?
But generally, you could load the (next?) page into a hidden iframe. - unveiling it when that becomes prudent..
Post a Comment for "Preloading Of Html Web Page Or Non-flash Web Applications?"