Video Background takes time to load (wordpress)

0

Hello! Please ... The video of the home screen of my site in wordpress ( link ) takes a long time to load. And the gif preloader finishes loading before the video. Can anyone tell me if there is any code or plugin to solve this problem? Thanks!

    
asked by anonymous 10.03.2017 / 19:28

2 answers

1

Some tips:

1- The video is extremely large, no matter what plugin you use, if you use such a large video it will take a few seconds to reduce the video because it is just a screen background and it is there for decorate, not to watch;

2 - Since it has a transparent screen in the front, you can reduce the resolution of it that you will not notice,

3- I tested it on # test, I suggest you look at the cost / benefit of the suggestions:

    
10.03.2017 / 20:22
0
<script type="text/javascript">
            window.onload = function(){
                $('section#content').style.display = 'block';
            }
</script>
<style media="screen">
            section#content{
                display: none;
            }
</style>

I think this will help. The code above will basically hide everything within the "id" content section until all page elements are loaded (including styles, images and even videos). When everything is loaded, the "window.onload" will be triggered by setting the display of the section content to block, displaying it on the screen. It's best that you put this code before the contents of <body> .

    
10.03.2017 / 20:29