如何处理网页中的大量图像? [英] How to handle A LOT of images in a webpage?

查看:90
本文介绍了如何处理网页中的大量图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在创建一个网站,然后我向网络开发人员展示了它。我想让我的网站成为视觉体验,每个页面至少有30个50x 50缩略图,120 x 100图像和更多缩略图。它将是一个仅限会员的页面,因此您可以成像,注册用户越多,我们将拥有更多的图像。事实上,每个成员都可以拥有他/她自己的相册,这将是另一组图像。

So im making a website and i showed it to a fellow web developer. I want to make my website a "visual experience" and every page will have at least 30 50x 50 thumbnails, a 120 x 100 image, and a couple more thumbnails. it will a a members only page so you can image, the more register users, we will have MUCH MUCH more images. in fact, each member can have his/her own photo album, which will be another set of images.

所以他真的很担心我的网站不会被优化除非我投资一台非常昂贵的服务器,否则无法立即加载图像。用户必须等待几秒钟才能加载图像。

So he was really worried that my site would not be optimized and said that unless i invest in a REALLY REALLY expensive server, there is no way the images will load immediately. Users will have to wait seconds for images to load up.

所以我想知道有什么技巧可以解决这个问题吗?当我查看像facebook.com这样的网站图片的src属性时,它会转到像 http://profile.ak.fbcdn.net/hprofile-ak-snc4/27537_45309870078_2551_s.jpg 。是否有某种技术将所有图像存储在不同的服务器/网站上?

So i was wondering is there any techniques to fix this? When i look at the src attribute of the images of websites like facebook.com ,it goes to places like http://profile.ak.fbcdn.net/hprofile-ak-snc4/27537_45309870078_2551_s.jpg. Is that some sort of technique to store the all the images on a different server/website?

所以基本上,我将拥有一个非常图像密集的网站,我想知道什么是确保用户体验尽可能顺畅的最佳方法,而不是让用户等待单个图像加载。谢谢。

So basically, im going to have a very image intensive website and i was wondering what is the best way to make sure the user experience is smooth as possible and not have users wait for individual images to load. Thanks.

推荐答案

有一些服务,称为CDN,内容分发网络。一些大型网站有自己的。

There are services for that, called CDNs, content delivery networks. Some of the big sites have their own.

这篇关于如何处理网页中的大量图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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