[英]I've got to display 1000+ uncategorized picture thumbnails on a mobile browser and I don't know how
Everything I try falls short when testing on a mobile. 在手机上进行测试时,我尝试的所有内容均达不到要求。 Loading times are unacceptably long, scrolling is jerky, etc. Thumbnails I'm working with are 120px wide. 加载时间长得令人无法接受,滚动很生涩,等等。我正在使用的缩略图宽度为120px。 I understand this is not a specific question but I'd like to hear how would you approach this kind of problem? 我了解这不是一个特定的问题,但我想听听您如何解决这种问题?
I can think of three approaches 我可以想到三种方法
I would suggest you not to make all the thumbnails load at once. 我建议您不要一次加载所有缩略图。 You can load 50 or hundred thumbnails when the page loads first and load remaining if they click on load more. 当页面首先加载时,您可以加载50或数百个缩略图,如果单击更多按钮,则可以加载剩余的缩略图。 Or you can organize them into pages 或者您可以将它们整理成页面
Loading at once makes your web page size more than an MB which will obviously take a lot of time to load 一次加载会使您的网页大小超过MB,这显然会花费大量时间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.