Reputation: 4308
What´s the best practice for different pages in an app, which are for example called from a menue.
Would you create for a new page this page in DOM and destroy the old one or is it better to hide the oldones (could be more of course)?
Or is there another better way?
Thanks Mica
Upvotes: -1
Views: 73
Reputation: 657416
This depends on the DOM size when all views are inserted into the DOM but hidden. If it's to big it may make more sense to insert/remove otherwise just show/hide. It also depends on the probability that the other views will be displayed.
Upvotes: 1