Tagged: ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1426642

    How do I prevent content shift for images on pages
    Need css
    tks

    #1426643

    example: https://bestfortmyersrealestate.com/creekside-preserve/

    There are many more pages like this

    #1426649

    Hi daves1997,

    I checked the page on Google’s Pagespeed Insight and it does not seem to have a Cumulative Layout Shift, I have posted the result link in private content.

    Best regards,
    Nikko

    #1426652

    It takes about 10 seconds to shift. so page speed not a surprise it doesn’t show.

    2023-11-28_18-57-25

    #1426655

    Hi daves1997,

    I see, I think there’s a js code running that triggers that behavior.
    Can you try adding this CSS code and see if it helps:

    #top a:has(picture) {
        display: inline !important;
    }

    if it does not help on other pages, please try to give links on it as well.

    Best regards,
    Nikko

    #1426703

    Is that a global solution?

    #1426766

    Hi daves1997,

    Yes, it’s a global solution but it will only apply on links that has a picture on it.
    If there’s other areas that it should not affect or other places it’s not working, then please provide links for it as well, then we can adjust the code to narrow it down.

    Best regards,
    Nikko

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