G-Man
G-Man

Reputation: 7241

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

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

Upvotes: 7

Views: 929

Answers (1)

aziz punjani
aziz punjani

Reputation: 25776

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.

Upvotes: 4

Related Questions