jquery - Storing JSON response in a mobile app -



jquery - Storing JSON response in a mobile app -

i want maintain amount of http requests of mobile app lowest possible 1 request , store json locally in global variable. after this, have 3 ways display retrived data, query global variable using jlinq. run smoothly on desktop, takes more on smartphone, had cut down it's usage, , store result of query in global variable. @ end, have 3 global variable 3 ways can show json. don't solution since i'm afraid can heavy on low memory devices, thinking store results html5 web storage: think session/local storage better/faster solution or think global variable best way?

what exactlyt trying store? hard tell method's preferably without digging deeper you're trying do. in short, storing info in localstorage 1 way locally store info onto user's browser.

however, if storing in global variables doing job, see no reason not so. if wan't utilize localstorage , don't need info remain after user has closed downwards browser, sessionstorage may improve alternative.

jquery json mobile local-storage

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -