Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery.data - how much data can I store in it

Tags:

jquery

Is there a limit on how much data I can store using jQuery.data( element, key, value ) ? Also, where is the data stored ? In memory ?

Thanks

like image 772
G-Man Avatar asked Oct 12 '11 01:10

G-Man


1 Answers

The data is stored internally in the $.cache object. As per the limit, i did a small experiment with arbitrarily large number of text lines, i can't seem to get it to break, or even throw an exception.

like image 126
aziz punjani Avatar answered Sep 29 '22 11:09

aziz punjani