Better Performance, Empty Elements Or Create And Destroy With Javascript?

tusDeletomo

New Member
What would be better for performance, having many hidden elements on a page, or creating them and destroying them as they are needed with javascript upon request. For example, when something is clicked the element is first created and then shown. When it is closed it is then destroyed. Would that be better than having hidden elements scattered among the page?
 
Top