L
L
Lici2014-05-29 21:07:06
css
Lici, 2014-05-29 21:07:06

Are elements that display:none loaded?

That is, can I reduce the physical size of the page being loaded for mobile devices by simply setting all heavy elements to display none in css via the min-width property?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Kuleshov, 2014-05-29
@GingerbreadMSK

No. The physical size is the actual size of the HTML, regardless of its CSS settings, however, the rendering speed will increase (if you specify display:none in the head section, preferably inline code) , because there is no need to draw "extra" - a trifle, but nice to the eye!))

M
Mangor, 2014-05-29
@Mangor

setting all heavy elements to display none

Perhaps you can help " Upload images on demand "

M
Maxim E, 2014-06-01
@creativeworm

Page size = weight of html (rendered page) + scripts + css + images.
If you hide it with display=none, then the content between tags with this style will simply not be displayed, but the weight will not decrease. If there is a picture in it, then it will participate in the "formula" of the first line of the answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question