• Resolved robhamburg89

    (@robhamburg89)


    Hi there,

    I’m basing this on Google’s pageSpeed test and sometimes when I run the test, it recognises images being deferred in desktop view but many times not mobile view. What could be going on here?
    thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter robhamburg89

    (@robhamburg89)

    Also the same problem occurs for next gen image formats

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Had a look; this concerns 2 images (front-page-image-teacher-with-kids.png and front-page-image-teacher-with-kids-mobile.jpg) which are both set in CSS in a style tag (<style data-type=vc_shortcodes-custom-css> specifically) and lazyload (and next gen images, which depends on lazyload) does not work on background-images that are added in CSS I’m afraid.

    hope this clarifies,
    frank

    Thread Starter robhamburg89

    (@robhamburg89)

    Thanks for the speedy reply – what might be a better way to add the images? In HTML?
    TIA

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    for current version of AO; indeed inside an <img tag

    AO 2.6 (beta zip here) will also act on a node (typically <div) with a style attribute that sets a background-image (as a lot of pagebuilders do it that way).

    Thread Starter robhamburg89

    (@robhamburg89)

    But both the image for desktop and mobile have been added with CSS but image defer works on desktop view and the google speed report says 14 images haven’t been deferred on mobile view – when by your above diagnosis it should be just one right?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    that’s weird; when I test only one image is singled out;

    GPSI can be .. confused sometimes 😉

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Image defer not always working in mobile view’ is closed to new replies.