Slider video loads very late. Other videos load much quicker

4 replies · opened Oct 12, 2021

AakhilkhemaniOct 12, 2021

Im using the following template -
http://themes.semicolonweb.com/html/canvas/static-html5-video.html

This is the code for the slider video part-
<div class="video-wrap no-placeholder">
<video id="video1" autoplay="" loop="" muted="" playsinline="" webkit-playsinline="" poster="" preload="none" src="Akhil-videos/smart2.mp4"></video>
</div>

The issue im facing is that, the entire website loads and only then does this video loads. This video is the last thing to load. all other div elements and the other video elements loads much before this slider video.

I think the problem is with the video-wrap class. Because when i use the device-video-wrap class instead, just for testing purposes, the video loads right away.

Can you tell me how can I fix this problem ?

SSemicolon WebSTAFFOct 13, 2021

Hello,

This is to avoid Video Jump during resizing the Video to Full Screen to best possible resolutions. Simply find and delete the following code from the style.css File:
[ch_pre type="css"]body:not(.has-plugin-html5video) .video-wrap video {
opacity: 0;
}[/ch_pre]

This will fix the delay. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

AakhilkhemaniOct 13, 2021

Thanks for the reply.

I did try to make the suggested changes. Continues to work fine on laptops.

On mobiles, the delay does get fixed and the video plays right away , but now the video is very small and not full screen mode for a long time. It looks pretty wierd. The video becomes full screen after some time.
Im unable to attach the screen recording because the video of the screen recording is too large to attach here.

Kindly view this page on mobile -
https://thesmartspace.net/website2/main1.html

You will know what i mean.

Please find me a solution where the video loads right away and in full screen on mobile.

AakhilkhemaniOct 13, 2021

Attaching screenshots -

SSemicolon WebSTAFFOct 14, 2021

Hello,

As we have mentioned earlier in our replies above, the sizing of the Video is dependent on JS Codes and the JS Codes are executed as soon as they are downloaded on the Page which is why there is a delay. This is currently the default behavior of Background HTML5 Videos and the only solution currently available is to display the video when it is resized as it was working earlier. We will keep releasing updates as we continue bettering this.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard