<div style="display: none;">foo</div>
I'm thinking about bloating my DOM a bit for some (lazy probably) reasons with content which is hidden.
Now I'm wondering if this would actually affect performance so my question is: when will a browser (talking about recent browser) parse hidden content? When it get added to the DOM? Or when it get actually visible?
I'm asking explicit for the content of the div, since the container has to be parsed - otherwise the browser couldn't know its hidden, right? ;)
I'm asking this for all modern browser, since I think that all modern browsers will handle this in the same way.
Oh and maybe I should add that I'll add these hidden content per JS.