Tagged: enfold, video. mobile
Hello,
I have noticed on the website that i have linked to in the private content the Google Pagespeed loads the video twice on mobile.
I have done these things:
– Hide video on Mobile Devices? – Yes
– Hide the color section on mobile
– Created a section that only shows on mobil and it only have an image.
What can i do to avoid this?
You can see the loading twice under: “Avoid enormous network payloads”
Hey mvi,
Thank you for the inquiry.
The browser actually streams the video or load it partially, but it is not loaded twice. You can check the status code of the resource in the screenshot below.
Screenshot: https://1drv.ms/u/s!AjjTfXSRbKTvwGtIJpqGwdkeZ2EV?e=SqLb35
More info about status code 206.
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/206
Also, please note that media files including mp4 videos will still be preloaded even when the elements that contain them are hidden.
Best regards,
Ismael
Hi Ismael,
Thank you for your good and detailed explanation for the issue.
It all make sense and i say thank you for your help :-)
Hi,
Great, I’m glad that Ismael could help you out. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
We can close it :-)
Hi,
Thanks for letting us know, I’ll close this thread for now then. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard