News for hackers. Stuff that matters.
Re:Using jQuery’s Data APIs by MatthewPhillips on Friday September 02, 2011 @01:41PM (#2954912)
> Updating DOM attributes each time data was changed would slow things down for no good reason.

TLDR: Only use HTML5 data-* attributes server side. Just use .data() to manipulate data in the client.

Re:Using jQuery’s Data APIs by dmethvin on Friday September 02, 2011 @03:32PM (#2955303)
Yeah, that's exactly the scenario we were expecting: HTML markup would specify some data that would be used to initialize jQuery's data object.