KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to store relatively larget bit of JSON for global access in my web app. Should I use jquery's $.data(document.body, 'some-reference-here', MyJsonObj); or a global? I know binding $.data() to document.body is faster than to a jquery object, but how does this compare to global variable? I'm interested the most efficient memory usage.
Tags (comma-separated)
Save Edits
Cancel