javascript - disadvantages of pre-creating html serverside for phonegap app -


i want create mobile application existing website. application allow users login accounts, upload files, view messages etc. app created using phonegap , js/css/html5 possible. question is: apps have seen far use json-responses (or similar) , work them right in app. disadvantage of creating necessary html on server , loading div using jquery? (is possible because of same origin policy?) when want change minor things of application, easier in way, there must reason why haven't seen far...

the html , templates cached locally - passing json data instead of html fragments you're passing less data, network traffic limiting factor in mobile apps.

from design point of view asking server data (and not presentation logic) makes better separation of concerns , architecture often. it's easier cache data presentation because of user preferences , such.

on upside - sending data make presenting faster since less work has happen on client side.

as same origin policy, not apply mobile apps don't worry it.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -