的HTML网页或者非flash web应用程序preloading? [英] Preloading of html web page or non-flash web applications?

查看:115
本文介绍了的HTML网页或者非flash web应用程序preloading?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信大多数人都听过的图像preloading。

I believe that most of you have heard of preloading of images.

但是,有没有谁知道我们如何能preLOAD网页?

But is there anyone who knows how we can preload webpages?

例如,当我们登录到Gmail中,我们将看到一个加载进度条。

For instance, when we are login to GMAIL, we will see a loading progress bar.

我们如何preLOAD HTML网页/ Web应用程序(非基于flash) 按照什么样的Gmail是干什么的?

How do we preload html webpages/web applications (non-flash based ) as per what gmail is doing?

最好的问候

推荐答案

由于HTTP协议的无状态特性, pre加载的网页可能是具有挑战性的。实现这一目标的一种方法将是有发送给客户端最初是一个最小的HTML,然后逐步提高使用的 AJAX 。在时间的AJAX请求被执行,你可以有网页说,正在加载该网站上的一些微调,但如果你想拥有真正的进度条(如一个Gmail使用),事情就变得更具挑战性。

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.

这篇关于的HTML网页或者非flash web应用程序preloading?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆