jQuery Mobile筛选列表在iPhone 3GS上缓慢显示150个项目 [英] jQuery Mobile Filtered List slow with 150 items on iPhone 3GS

查看:84
本文介绍了jQuery Mobile筛选列表在iPhone 3GS上缓慢显示150个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQuery Mobile过滤列表:

Im using the jQuery Mobile Filtered List:

http://jquerymobile.com/demos/1.0. 1/docs/lists/lists-search.html

在我的PC上运行正常,但在iPhone 3GS上运行缓慢.输入字母和要过滤的列表之间大约有半秒的延迟.我有150项要过滤的项目,有些糊涂似乎应该可以解决.那么,我对响应ID的速度是否只是不现实,或者可能是错误的?

On my PC it works fine but on my iPhone 3GS its quite slow. There is about a half second delay between entering a letter and the list being filtered. I have 150 items to filter, from some googeling it seems this should be handled fine. So am I just being unrealistic with the speed of response id like or is something likely wrong?

即使单词不是以字符开头,过滤器也会找到这些字符.因此,输入"ar"会找到"Paris".这对于我的应用程序不是必需的,我很高兴仅当项目以过滤器开头的字母开头时才返回它们.可以关闭此功能吗?如果这样做,我可能会看到明显的性能提升吗?

The filter will find the characters even if the word doesn't start with them. So entering 'ar' would find 'Paris'. This isn't necessary for my application, im happy for items to only be returned if they start with the letter that the filter starts with. Can this feature be turned off and would I likely see a noticeable performance benefit if I did so?

推荐答案

我的结论是jQuery Mobile的运行速度很慢.我已经用jQuery重建了我的网站的精确副本,并且性能要好得多.也许是因为它的框架还很年轻,但是我非常主观的经验是,如果您需要最佳性能,那么它还没有准备就绪.

My conclusion is that jQuery Mobile is just plain slow. Ive rebuilt an exact copy of my site with just jQuery and the performance is much better. Maybe its because its a young framework but my very subjective experience is that its not production ready if you need optimal performance.

这篇关于jQuery Mobile筛选列表在iPhone 3GS上缓慢显示150个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆