Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1404342

    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

    #1404616

    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

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