开发者

What is an acceptable web page footprint?

开发者 https://www.devze.com 2023-01-12 16:07 出处:网络
There is a carousel project, which currently loads all the images upfront, but the size is getting bigger each week. More and more images are being added beyond the original design.

There is a carousel project, which currently loads all the images upfront, but the size is getting bigger each week. More and more images are being added beyond the original design.

Someone asked me; What is an acceptable web page footprint?

My knee je开发者_如何学Pythonrk reaction was to suggest lazy-loading of images, but that's not what they asked me.

Your thoughts are appreciated.


Not a straight forward answer, but it really depends on your user base more than anything. The acceptable web page footprint will be completely different between a user base with 80% IE6 users than that of a page where all users use Safari and Chrome.

You can only find out for yourself what you or your client will find acceptable, and the only way to find that out is by testing various scenarios in different environments

  • Fast internet connection + slow old browser
  • Fast browser on a slow machine
  • Internet cafe

Lazy-loading resources is always a good idea. Another good idea is to store static resources on a CDN like Rackspace Cloud (http://www.rackspacecloud.com/cloud_hosting_products/files) or Amazon S3 (https://s3.amazonaws.com/).


The faster your page loads, the better. 2 seconds is a maximal time for a business site nowadays. Let it load slower - and you lose visitors, who are used to 0.5-1 sec load time. So you need to estimate time needed for the average Joe to load your web page, based on average bandwidth of your target audience. I don't have exact numbers for bandwidth, unfortunately.

0

精彩评论

暂无评论...
验证码 换一张
取 消