适用于大型HTML页面的JavaScript预加载器? [英] JavaScript Preloader for large HTML page?

查看:65
本文介绍了适用于大型HTML页面的JavaScript预加载器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好......


i有一个大的HTML页面(大约200kb)...因为ActionScript与JavaScript非常相似,我很好奇的天气它是'可以设计出类似闪存的预加载器。对于使用JavaScript的HTML页面?


谢谢...

hi there...

i have a large HTML page (approx 200kb)... since ActionScript is quite similar to JavaScript, i''m curious weather it''s possible to design a "flash-like preloader" for HTML pages using JavaScript?

thanks...

推荐答案

对Flash中的预加载器不太确定,但是你可以预加载图像。此外,您可以在页面加载后使用AJAX加载Javascript。还有按需Javascript加载。如果您将所有Javascript存储在一个文件中,您可以利用缓存来第二次加快页面加载。
Not too sure about pre-loader in Flash, but you can preload images. Also, you can use AJAX to load the Javascript after the page has loaded. There is also on-demand Javascript loading. If you store all the Javascript in one file, you can probably take advantage of caching to make the page load faster the second time.



对Flash中的预加载器不太确定,但您可以预加载图像。此外,您可以在页面加载后使用AJAX加载Javascript。还有按需Javascript加载。如果将所有Javascript存储在一个文件中,则可以利用缓存来第二次加快页面加载速度。
Not too sure about pre-loader in Flash, but you can preload images. Also, you can use AJAX to load the Javascript after the page has loaded. There is also on-demand Javascript loading. If you store all the Javascript in one file, you can probably take advantage of caching to make the page load faster the second time.



i尽可能多......这是一个很长的镜头,但值得一提; - )...谢谢你。

i figured as much...it was a long shot, but worth asking ;-)... thanks acoder.


欢迎你。


这篇关于适用于大型HTML页面的JavaScript预加载器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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