Slide deck from my Dreamforce 2013 breakout session on how to turn your Visualforce application into an HTML5 mobile application using the jQuery Mobile and Knockout.js frameworks.
2. About me
CTO of BrightGen
5 years Force.com
Force.com MVP
Enterprise Java background
3. Styling isn’t mobilizing!
“Mimicking a mobile device UI turns my slick Visualforce pages into slick
HTML5 web applications” – me, circa. Dreamforce 2010
It doesn’t. Here’s why (and how it should be done) ...
19. Rebuild the app for mobile
Mobile experience
Animated transitions
Reactive
20. Part 2: JavaScript
Business logic
Executes client side
Jquery
Jquery
Mobile
Mobile
JavaScript
JavaScript
Reduced round trips
JavaScript
JavaScript
Remoting
Remoting
No API calls
Options – native, hybrid,htm5. Users not going to install an application to take the odd survey.
JQM and Visualforce fight for control of navigation and form postbacks. It ends up feeling like a regular web site, as every action requires a round trip with a full page reload.
Mention server side view state pilot in winter 14 – this will help with point 2, but latency is still the killer for round trips.
Network interfaces go to sleep to conserve battery life.
Mobile devices Packet loss is inevitable in mobile networks – this is interpreted as congestion and the transmission speed is decreased.
Lots of large viewstate consumes bandwidth and makes things slow
Server side is back to the future – I have to work with what is GA.