hello,
i am using video background and the video take time to load,
is there any way to display a fixed background image till the video done loading.
Regards Reraow
Hey reraow!
Could you provide us with a link to the site in question so that we can take a closer look please?
Cheers!
Rikard
Hey !
http://harakastudio.com/test/
i put a background image , you wont notice the problem if you have fast internet access
Hi,
Try adding this at the very end of your theme / child theme functions.php file:
function add_custom_script(){
?>
<script>
(function($){
$(window).load(function() {
$("#av_section_1 video.avia_video").attr("poster", "http://harakastudio.com/test/wp-content/uploads/2015/03/bg-load1.png");
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue
Hi,
here is the link
http://harakastudio.com/test/
it works but the video load become tooooo slow :(
i observed the network transfers (Chrome) it took 9:10 mins ….
Hey!
That’s not theme-related, but on the user’s end, at least for me it loaded in 3-4 secs.
Regards,
Josue