I wanted to get some info/tips on making a Generic (iOS/Android/WebOS/etc...) Mobile Site.
开发者_Python百科Looking for:
- Speed (Loading)
- Cache (benefits?)
- DOCTYPE (I like HTML5)
- JavaScript Lib (I'm leaning towards jQueryMobile but it's still in Alpha)
- Etc...
Looking to avoid any pitfalls and take advantage of some frameworks as well.
The backend will be PHP/PostgreSQL driven and I do have a form submission (Thinking JSON but no experience with this), Security is also very important.
Looking forward to some great feedback
Just some personal preferences...
I'd assume most mobile browsers support html5.
Use sprites for your images, try to keep the # of http requests down.
jQM isn't too bad, there are others out there too.
Use json.
For security, use SSL if possible. If not possible, hash the passwords before transmitting.
With PHP make sure you clean any input from the browser.
精彩评论