7 ms·
> 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 .d
by MatthewPhillips 15y ago
> 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.
- dmethvin 15y agoYeah, that's exactly the scenario we were expecting: HTML markup would specify some data that would be used to initialize jQuery's data object.
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]
- deleted 15y ago[deleted]