Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #441982

    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

    #442204

    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

    #442731

    Hey !
    http://harakastudio.com/test/
    i put a background image , you wont notice the problem if you have fast internet access

    #443654

    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

    • This reply was modified 8 years, 11 months ago by Josue.
    #443873

    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 ….

    #444618

    Hey!

    That’s not theme-related, but on the user’s end, at least for me it loaded in 3-4 secs.

    Regards,
    Josue

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.