/
Do not store application data in the DOM
Do not store application data in the DOM
Many web applications use DOM elements to store application state. It’s better to store application state in pure Javascript objects to achieve simpler designs with have better performance and less complexity.
, multiple selections available,
Related content
How do I find the element my virtual cursor should be in?
How do I find the element my virtual cursor should be in?
Read with this
Another way to look at why the DOM is a bad place to store state
Another way to look at why the DOM is a bad place to store state
More like this
Don't use static methods on classes
Don't use static methods on classes
Read with this
Similarly controls with state are a bad idea
Similarly controls with state are a bad idea
More like this
The Windows Registry
The Windows Registry
Read with this
DOM Elements versus HTML markup
DOM Elements versus HTML markup
More like this