GoogleChrome / GoogleChrome/lighthouse

Don't show "Image elements do not have explicit width and height" for data URI images

Open
#12,233 5 comments 0 reactions 1 assignee Claimed by @connorjclark View on GitHub
needs-investigation P3
Dominant language
JavaScript
Stars
30.8k
Forks
9.8k
Avg merge
1d 20h
Merged PRs (30d)
19

Description

#### Provide the steps to reproduce
1. Run LH on https://ethan.link/

#### What is the current behavior?
It shows the "Image elements do not have explicit width and height" error for my images even though they're data URIs:
Screen Shot 2021-03-11 at 6 17 03 pm

#### What is the expected behavior?
It shouldn't show the error since data URIs have zero loading time, meaning there is no need to add width/height attributes to prevent layout shift.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.