Changes between Version 13 and Version 14 of BluePrint/Mobile/Portal
- Timestamp:
- 11/21/11 11:03:43 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrint/Mobile/Portal
v13 v14 5 5 This acts like the '/m' version of popular websites. 6 6 7 This should be light on AJAX (if present at all).8 7 9 This can use the existing RESTlike CRUD controller's ?format=plain to generate lightweight forms. 10 11 An XML library of mobile phone capabilities: 12 * http://wurfl.sourceforge.net/ 13 14 Discussion of Web2Py ways of detection: 15 * http://groups.google.com/group/web2py/browse_thread/thread/6ca3015735bffaa8# 16 17 This is the new Web2Py method which has been developed since we developed ours: 18 * http://bazaar.launchpad.net/~mdipierro/web2py/devel/view/head:/gluon/contrib/user_agent_parser.py 19 20 Web2Py {{{MENU(mobile=True)}}}: 21 * http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/3953 22 23 Web2Py Plugin to use jQuery Mobile: 24 * http://web2py.com/plugins/plugin_jqmobile/about/1 25 26 CSS thoughts: 27 * [wiki:BluePrintCSS#MobileView] 28 29 !JavaScript caching: 30 * http://www.yuiblog.com/blog/2010/07/12/mobile-browser-cache-limits-revisited/ 31 8 We need to : 9 * Detect that a mobile device is being used 10 * [http://wurfl.sourceforge.net WURFL] - an XML library of mobile phone capabilities 11 * Provide an optimised screen size & navigation 12 * [wiki:BluePrintCSS#MobileView CSS for Mobile] 13 * Could use the existing RESTlike CRUD controller's ?format=plain to generate lightweight forms. 14 * Work on low-bandwidth/high latency 15 * Light on AJAX (if present at all). 16 * !JavaScript caching: 17 * http://www.yuiblog.com/blog/2010/07/12/mobile-browser-cache-limits-revisited/ 32 18 ''Use far-future cache expiration headers. This will prevent the browser from having to send a conditional GET request. 33 19 Try to limit HTML pages to 25.6KB or less if you want them to be cached, since the previous tests showed that this limit—imposed by iOS 3.2 on the iPad—was the lowest HTML resource limit of the devices tested. 34 20 Keep CSS and JS components under 1MB. Of course, 1MB is enormous and your components should be much smaller than this, but don’t bother splitting a component into separate requests for the sake of cacheability unless its size approaches 1MB. 35 21 Consider using the HTML5 application cache if it’s important that your components persist in the cache for a long time, or across power cycles.'' 22 23 24 == Web2Py support == 25 Detection: 26 * http://groups.google.com/group/web2py/browse_thread/thread/6ca3015735bffaa8# 27 28 New Web2Py method (developed since we developed ours): 29 * http://bazaar.launchpad.net/~mdipierro/web2py/devel/view/head:/gluon/contrib/user_agent_parser.py 30 31 {{{MENU(mobile=True)}}}: 32 * http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/3953 33 34 Plugin to use jQuery Mobile: 35 * http://web2py.com/plugins/plugin_jqmobile/about/1 36 * https://groups.google.com/forum/#!topic/web2py/SZxLeK9SaS4 36 37 == Status == 37 38