Is it displayed: no item is loading?

I have a large video file that I want to post on the main page. I don’t want it to link load time, so I thought I could just configure its display: no, and then change the display after the page loads. Will this work?

+6
javascript css load-time
source share
2 answers

Will this work?

Nope. display: none will prevent the item from being displayed; it will be loaded nonetheless.

You can observe how this happens in the inspector of the elements of your choice (for example, in the Firebug or IE8 dev tools).

The best way is probably to create a Video element using JavaScript, or - if you want a safe solution if JS is disabled - you can use an iframe that loads the video if the user clicks the link.

+19
source share
Display

has nothing to do with real download speed. However, this can lead to the appearance of speed in the same way as a pop-up page.

0
source share

All Articles