Loading images Faster in Webpage

前端 未结 14 2053
死守一世寂寞
死守一世寂寞 2020-12-30 23:39

In the web application when i click on a link that should load an image from server, it is taking too much time since the images are sized approxmately 3MB - 5 MB, we are un

14条回答
  •  温柔的废话
    2020-12-30 23:47

    You could go for a solution like google did (still does), with mobile browsing, where you basically setup a proxy, which can

    • Gzip it (on the proxy)
    • use other protocols (spdy eg)

    Here is the data compression google did:

    Otherwise if you cant change the image, and you cant reduce the quality in any way, and if you cannot change the server, (and the suggested javascript liberays does not suffice), then it sounds like you dont have any choice. However since you only specifed it should be done in under 5 secounds (which roughly translates to a 10 mbit download for the wiki example), then either you have too many images, or the required internet speed is very low.

提交回复
热议问题