我想在网站上快速加载多个图像,最好的方法是什么? [英] I want to load multiple images very fast on a website, what's the best method?
问题描述
更新:此问题已过时,请忽略
所以..我的想法是一次加载完整的漫画/漫画,包括一个进度条,并做一个流,如:
- 我的页面加载基本(HTML + CSS + JS)(当然)
- 完成后,我开始从我的服务器加载imgs(URL存储在JS var),一次(或更快的方式),因此我可以进行排序进度条。
-
其他选项:有没有办法在浏览器中加载所有imgs和解压缩的压缩文件? -
其他选项:我也在考虑以字符串形式保存然后解码,它们大多是.jpg - 图片无需马上显示,我只需要在完成回调后即可。
XTML和HTML5是可以接受的
为我的网站加载一系列图片的最快方式是什么?
编辑
由于@Oded评论..问题是真正的加载图像最好的技术是什么,用户不必每次都等待就变成'页面'。针对更类似的体验,比如在现实生活中阅读漫画。
EDIT2
正如有些人帮助我意识到的, m寻找类固醇的预加载器
$ b
EDIT3
没有css技术人员会这样做
如果您将大图片分割为较小的部分,则由于流水线操作,它们将在现代浏览器上加载更快。
UPDATE: This question is outdated, please disregard
So.. my idea is to load a full manga/comics at once, with a progress bar included, and make sort of a stream, like:
- My page loads the basic (HTML+CSS+JS) (of course)
- As done, I start loading the imgs(the URLs are stored on JS var) from my server, one a time (or some faster way) so I can make a sort of progress bar.
ALTERNATIVE: Is there a way to load a compresses file with all imgs and uncompress at the browser?ALTERNATIVE: I was also thinking of saving then as strings and then decode, they are mostly .jpg- The images don't have to show right away, i just need the callback when they are done.
XTML and HTML5 is acceptable
What is the fastest way to load a series of images for my website?
EDIT Since @Oded comment.. the question is truly what is the best tech for loading images and the user don't have to wait everytime is turns the 'page'. Targeting a more similar experience like when you read comics in real life.
EDIT2 As some people helped me realize, I'm looking for a pre-loader on steroids
EDIT3 No css techs will do
If you split large images into smaller parts, they'll load faster on modern browsers due to pipelining.
这篇关于我想在网站上快速加载多个图像,最好的方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!