我在主页上有很多图片,上面写着10,000张图片,这些图片来自亚马逊服务器
我有一个这样的代码
<?php
for($i=0; i <= 10000; i++){
?>
<div class="box">
<div>title</div>
<div><img src="amazon seerver url"></div>
<div>Description</div>
</div>
<?php } ?>我希望浏览器不要继续处理..图像可能会在以后加载
发布于 2014-08-20 16:19:17
you can show all content and use jquery lazy loading
seee link belwo
http://jsfiddle.net/5JwUx/7/发布于 2018-10-14 00:41:55
您应该尝试只加载浏览器可见区域中的图像。您可以使用延迟加载来实现这一点。
尝试像jquery,使用jQuery实现简单的延迟加载。Lazy load
http://jquery.eisbehr.de/lazy/example_basic-usage
希望这能有所帮助。
https://stackoverflow.com/questions/25398456
复制相似问题