If storing multiple (10+) values on a large number of divs, is it more optimal to store them all in a single object, or as separate values?
Single Object:
I'd probably do something like:
var data = $("#div_id").data(); data.foo=1; data.bar=2;