• Resolved anonymized-14934761

    (@anonymized-14934761)


    Hi,

    When I use the Google’s Search Console URL Inspection Tool > Tested Page > More Info, I get the following.

    “An element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323″

    Could you make the plugin get the dimensions in order to improve the performance?

    Kind Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Felix Arntz

    (@flixos90)

    Hi, this message appears because that image likely doesn’t have width and height attributes specified. Providing these attributes allows for a better user experience and performance on your site as the layout of your page will be clear from the initial HTML load, even before the image is loaded.

    It’s recommended to add these attributes to every image. Unfortunately this is something the plugin cannot do itself, because it wouldn’t know the dimensions of the image. In most cases, WordPress does that automatically, but maybe your theme or another plugin is including an image without dimensions which is causing this.

    Thread Starter anonymized-14934761

    (@anonymized-14934761)

    WordPress Gutenberg and the classic editor does specify diff dimensions and some lazy loading plugins actually have the ability to create placeholders before the image is loaded. These are images from the content. The plugin should have that ability. I even used some nice effects where you have a place holder and the images is fading when it shows. These are JS based lazy loading that don’t use Native Lazy Load. I use Native Lazy Load just because I know it’s the most compatible with Googlebot for crawling. The problem now is that the Search Console which I assume is using Googlebot-like or even the same Googlebot is displaying that issue. Since both products are by Google and since other lazy loading plugins can achieve using placeholders to in order to avoid the flock, can’t you you make the same thing for Native Lazy Load. Again, other plugins are able to pick up the dimensions in that content for placeholders.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Room for Improvement – Specify Dimensions, suggested by JavaScript Console’ is closed to new replies.