T
T
toly192017-04-29 11:33:17
JavaScript
toly19, 2017-04-29 11:33:17

Is there a performance gain by hiding the html element?

There are a large number of div elements (~500).
Each div contains a lot of SVG graphics.
only 1 div element is visible at any given time.
When switching from one diva to another, animation friezes occur (on a smartphone).
Is it advisable to hide all elements first (for example, through css - display: none),
then show (display: inline) only the element that is active, and hide the previous one ???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Pautov, 2017-04-29
@bootd

Not much, but it is advisable to load them then. Since there are so many

T
technikMan, 2017-04-29
@technikMan

Any elements put pressure on the graphical output.
Therefore, it is important to have a minimum of objects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question