stop video background from playing in mobile devices
-
im using wpbakery Use “row settings: video background – YouTube link” in one of my rows. and added a youtube link to run in the background.
in mobile phones this is heavy and id’e like to disable it.
using
CSS display:none
doesnt stop DOM from loading and im still seeing the streaming happening in the developer tools “network tab”.
i tried using jQuery
jQuery(“.vc_video-bg-container”).attr(“data-vc-video-bg”, “”);
jQuery(“.vc_video-bg-container”).attr(“data-vc-parallax-image”, “”);
same result…..
can you help me understand how to achieve this ?
Thanks
Hello,
Video cannot be used as a background in mobile by its nature. Any background is scaled on mobile what make impossible to apply video. That is why video background is often replaced with the image or color.
Best Regards
as you can see,
its still loading the videos in the background. even in mobile view
see image
this is very heavy on the page load
Hello,
This is WP bakery functionality and it is the way it works, our theme does not influence this, unfortunately.
Best Regards
You are welcome! If you have any questions please feel free to contact us.
Best Regards