Tagged: Google Lighthouse, mobile page speed
We use Google DevTools (Lighthouse) to see any problems with a webiste pre-launch.
We can see the video for the desktop version of the site is being seen by Google DevTools and is hurting our scores for Mobile Page Speed.
The video has been made ‘hide on mobile’ in LayerSlider, so we are unsure why we are being penalised with Google?
Is there a way to not let Google see the video whatsoever on mobile?
Here is what Google is flagging – https://ibb.co/bPBhRcN
Hey whdsolutions,
Thanks for your patience and the link to your site, when “hide on mobile” is used the element is given the css “display” of “none”, this only “hides” an element from view but it is still loaded.
The problem is that PHP is a server-side language and it can not know the device or screen size of a user, this requires a client-side language like css or javascript.
You may be able to use a solution like this to remove the element instead of hiding it.
Best regards,
Mike