Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: