5. Unsupported Elements
• <apex:inputField />
– If it creates a widget
• Use HTML5 type attribute
– Let the browser provide the widget
– Suitable touch keyboard
– No type for lookups!
7. Sforce.one JavaScript Object
• In app navigation
• Visualforce knows it is in Salesforce1
• Installed or HTML5?
– Inspect user-agent on iOS
– Risky – see Dolphin browser
8. Click event is Slow
• Webkit waits 300ms for double click
• Use touch events instead
• Support is patchy: caniuse.com/touch
• JavaScript libraries – e.g. Event, Zepto
22. Best Practice
• Avoid <apex:form/> - viewstate!
• Avoid round trips
– Single page application
– Business Logic in JavaScript
– Remoting or REST API