且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在jQuery Mobile中加载大型嵌套列表的最快方法是什么?

更新时间:2023-11-28 13:39:10

如我所见,您正在一次处理所有元素,但是不会一次显示所有元素.尝试仅将这些将要显示的元素处理并添加到DOM中.即使只有一对元素,但您拥有数千个元素,JQuery-mobile本身也非常慢.

As I see, you're processing all elements at once, however you don't display them all at once. Try to process and add to DOM only these elements that will be displayed. JQuery-mobile is very slow by itself even if there's only a pair of elements, you have thousands.