JQuery Slider for Mobile application

筅森魡賤 提交于 2019-12-13 01:33:24

问题


I would like to use the JQuery slider for my mobile application

http://docs.jquery.com/UI/Slider

However, using the Slider plugin, requires me to use the entire JQuery core (29kb) + Slider plugin (6kb).

Typically, that's okay but for a mobile application - that's a lot of data.

Question: Anyway I can use the JQuery Slider and eliminate any bloat that might exist in the core? I would really like to reduce this 29kb core down to something much smaller. (e.g. just using Sizzle + plugin or something like that if that worked)

(Keep in mind the file sizes above is for both gzipped and compressed JS)


回答1:


You may be interested in jQTouch.

jQTouch is a jQuery plugin with native animations, automatic navigation, and themes for mobile WebKit browsers like iPhone, G1, and Pre.




回答2:


You can also use the jQuery Mobile version of the slider : http://jquerymobile.com/demos/1.0a4.1/#docs/forms/forms-slider.html




回答3:


You could also take a look at YUI2 or YUI3 slider modules.

YUI 2 Slider

YUI 3 Slider




回答4:


here's the latest version of JQM



来源:https://stackoverflow.com/questions/2256706/jquery-slider-for-mobile-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!