2 ms·
You can set the width and height attribute (HTML attribute, not CSS property) today. Recent Chrome and Firefox use that to determine aspect ratio for jank-free
by Tomte 7y ago
You can set the width and height attribute (HTML attribute, not CSS property) today.
Recent Chrome and Firefox use that to determine aspect ratio for jank-free loading.
- frosted-flakes 7y agoFor images and iframes, but I don't think that works for any element. In any case, hardcoding that kind of information in the HTML is not ideal.