• Resolved markk26

    (@markk26)


    I’m getting this message from Google Page Speed:
    Image elements have no explicit width and height
    How can I fix this with NitroPack?

Viewing 1 replies (of 1 total)
  • Plugin Author NitroPack

    (@nitropack)

    Hi @markk26,

    There is currently no way to add these attributes with NitroPack for compatibility/stability reasons. Throughout the years we have identified cases where adding these attributes can cause stability issues with carousels, gallery plugins and sliders. This is why we have developed a more elaborate method to achieve the same effect of preemptively sizing images but without using these attributes. So even though you might see this recommendation in your Page Speed report the underlying issue is actually solved, just in a different way.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Image elements’ is closed to new replies.