1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Largest Contentful Paint Element

Discussion in 'HTML & Website Design' started by kertoon, Dec 1, 2023.

  1. #1
    From the Pagespeed Insights feedback, the above is from the blog post and the snippet at the homepage. It is HTML heading and paragraph issue. I tried the font-display: swap CSS rule, but couldn't get them to work.
     
    kertoon, Dec 1, 2023 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Are you being told it's too slow for the first paint?
    Look at the HTML it's loading, make sure images have width, height etc (painful but...), make sure there's not content that isn't needed.
     
    sarahk, Dec 2, 2023 IP
  3. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #3
    Really we'd have to see the page, code, and offending content area to weigh in. Usually though you can get false positives in lighthouse for simply large elements with things like box-shadow, text-shadow, or linear-gradient applied to them. Especially if you've layered such appearances atop each-other.

    But without seeing the actual page? Who knows.

    I mean I've gotten that message when the offending element was actually BEFORE the one they were reporting the problem with. Nearby element interactions, complex "grids", and thousands of other things can trigger that Lighthouse warning.
     
    deathshadow, Dec 5, 2023 IP
  4. kertoon

    kertoon Well-Known Member

    Messages:
    181
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    133
    #4
    I fixed it by adding the dimensions to the images. Thank you for both of you with your feedback. Again thanks.
     
    kertoon, Dec 11, 2023 IP
  5. Flowzai

    Flowzai Greenhorn

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    8
    #5
    Oh, this problem is fixed! okay
     
    Flowzai, Feb 27, 2024 IP