Page 1 of 1

Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 11:08 am
by Bluesman
Hi Pablo and WWB:rs. Having a videobackground in a Layout Grid that works good except for slow in mobile phones. The smallest breakpoint is 480 pxl and I want to have a static image here for speed up the loading time. Is that possible with the WWB tools.
Exciting AI 19 times... :D

Re: Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 11:20 am
by Pablo
I'm sorry, that is not possible.
The reason for that is that adding a background video does not only change the style but also HTML structure.
And the HTML structure is the same for all breakpoints.

Re: Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 2:22 pm
by Bluesman
Pablo wrote: Fri Nov 17, 2023 11:20 am I'm sorry, that is not possible.
The reason for that is that adding a background video does not only change the style but also HTML structure.
And the HTML structure is the same for all breakpoints.
Hi Pablo... I was wondering about a little workarround to this issue and how it would affect the html and loading speed:
If I copy the Layout Grid in the 480 bp that contains the background video and change this to a background image. Then I hide the Layout Grid that contains the video. After that I hide the new Layout Grid with image from the other breakpoints? Will this work ok you think without loading time for the video in 480 pxl?

A small wonder to... Many years ago I bought an extension from the late great [rz] R.I.P ❤️ Background Video. Because of the tragic death of {rz] and the no support any longer for his extensions I decided to change the ones I have used to newer when released from Pablo or other. But I have saved them and was thinking of taking this to use again because it has the futures of having image in breakpoint etc.
But wonder if you have any experience of this extension or advices because what happend?

Re: Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 2:25 pm
by crispy68
Even if you hide the video it will still be loaded. Hiding it only affects whether you see it or not.

Re: Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 2:26 pm
by Pablo
I'm sorry, I have no experience with this extension. But it may use a script to switch the video on / off.
But the structure of the HTML will still be the same, whether you hide the video or not.

Re: Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 2:40 pm
by Bluesman
crispy68 wrote: Fri Nov 17, 2023 2:25 pm Even if you hide the video it will still be loaded. Hiding it only affects whether you see it or not.
Tnx for that crispy, will save me some trial & error :)

Re: Change video background for image in 480 breakpoint

Posted: Fri Nov 17, 2023 2:42 pm
by Bluesman
Pablo wrote: Fri Nov 17, 2023 2:26 pm I'm sorry, I have no experience with this extension. But it may use a script to switch the video on / off.
But the structure of the HTML will still be the same, whether you hide the video or not.
Ok... tnx Pablo, seams regarding to crispys answer that this extension is my only option for the moment...
Waiting for AI 19 :mrgreen: