WEBFLOW WEB VITALS: Image Elements Do Not Have Explicit Width & Height

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 16

  • @VoyagesJapan
    @VoyagesJapan 3 месяца назад +1

    I think you're quickly becoming one of my favorite RUclipsrs!! Awesome, valuable, helpful content, Chris. Subbing from my personal account!

  • @technicalriad9656
    @technicalriad9656 6 месяцев назад +1

    I was looking for this thing for a long time but this is my solution, thank you very much

  • @slobodskyi-en
    @slobodskyi-en 3 месяца назад

    Hi Chris,
    Thanks for the video! Do you have any ideas on how to manage the issue with images inserted via Rich Text for the CMS? I have blog posts with many different images and I'm trying to find a solution for sizes that will work on both desktop and mobile.

    • @saascouple
      @saascouple  3 месяца назад +1

      Unfortunately, there's no direct solution to this. The library that Webflow is using for rescaling images (responsiveness) is old and buggy. I'm working now on a new lazy load & image rescale tool. Hopefully will be done shortly. But at the moment, you can try:
      1. Click on the image inside Rich.
      2. Click on the gear icon
      3. Go to the Size and set to fixed width and height.
      4. Save and re-run Lighthouse.

    • @slobodskyi-en
      @slobodskyi-en 3 месяца назад

      ​@@saascouple Thanks for the idea, and good luck with the tool!

  • @frankdrolet9439
    @frankdrolet9439 5 месяцев назад +1

    Love this series about speed optimization, really well explained so we're not just following steps like zombies
    Keep them coming!

  • @sam-45632
    @sam-45632 3 месяца назад

    i set the values of all images but the section keeps on collapsing when on load do I also have the set a height to the section?

    • @saascouple
      @saascouple  3 месяца назад

      Sam, send me a read-only link please on my email chris@thelumious.com. Might collapse for different reasons, including your browser.

  • @JesseShauffer
    @JesseShauffer 7 месяцев назад

    Using ratios I am pretty sure eliminates this issue because Webflow will always know what the width and height will be. Let me know if I’m wrong.

    • @saascouple
      @saascouple  7 месяцев назад

      Yep, however what about images that have uncommon ratios? At the same time, the width and height tells webflow how to create the src sets and serve different image sizes on different breakpoints. But yeah, you're right.

  • @bytheformula
    @bytheformula 6 месяцев назад

    I've tried this and still getting the error on page insights to properly size images not sure why

    • @bytheformula
      @bytheformula 6 месяцев назад

      Disable responsiveness was unchecked, checking it fixed the issue but it's dramatically reduced the image quality so I think there's an issue with Webflow's CDN or the way they serve images doesn't respect the hard values but my best guess

    • @saascouple
      @saascouple  6 месяцев назад

      the issue you're mentioning is different than the one in the video. Properly size images means Webflow does not generate different image size for different screen sizes. Might be for two reasons:
      1. You do have 'Responsive image' option toggled off within the image settings.
      2. Webflow responsive images plugin does not work sometimes as intended which still trigger the warning.
      However, this is just a warning and does not impact your overall Web Vitals. But if you still want to fix the warning, I'd suggest you integrating a different plugin for responsive images or jsut lazy loading off-screen images so Web Vitals does not trigger the warning. Let me know if this make sense.

  • @Kebbab.213
    @Kebbab.213 25 дней назад

    I would pay for this tyoe of videos

    • @saascouple
      @saascouple  25 дней назад

      thanks for your support