A
A
Andrei Smirnov2017-03-09 19:53:44
css
Andrei Smirnov, 2017-03-09 19:53:44

Does the browser render elements hidden by overlay elements?

There is a rather complicated (for rendering) page. A panel appears on top of it, covering 100% of the page with opacity: 1 (the final fade-in stage). But this panel draws another equally complex UI.
Question: will the browser burn the CPU by rendering everything that is hidden under the panel? Or do you need to cut the main content from the DOM at the time the panel is displayed? Can this be checked somehow?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sasha, 2017-03-09
@pinebit

Elements with "display:none;" style will not be rendered until they are called.

I
Ivan, 2017-03-09
@LiguidCool

1) draws everything
2) VirtualDOM like React.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question