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

It's probably because invoking DOM APIs is terribly slow and if you're accessing those fields with any frequency you're better off using a JS object.


The point was that there are many ways to solve the problem. For say, a simple tab layout where you add click handlers to the tabs and hide/ show the contents, you would never notice any latency using the DOM apis. The DOM apis are the core of web development. You need to know them and consider them before moving into the abstraction atop.




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

Search: