Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Image): pass loading attribute to an img element #4116

Merged
merged 1 commit into from
Nov 24, 2020

Conversation

noinkling
Copy link
Contributor

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-loading (it's part of the WHATWG spec now, not just experimental)

This allows use of the attribute when the image uses a wrapping element, e.g: <Image loading="lazy" wrapped />
Currently it gets set on the wrapper div which is useless.

This is a newer standardized attribute that doesn't work if placed on a wrapping element.
@codecov-io
Copy link

codecov-io commented Nov 20, 2020

Codecov Report

Merging #4116 (09a6b4e) into master (c828368) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4116   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files         180      180           
  Lines        3241     3241           
=======================================
  Hits         3233     3233           
  Misses          8        8           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c828368...09a6b4e. Read the comment docs.

@layershifter layershifter changed the title fix(Image): pass loading prop/attribute through to the img element fix(Image): pass loading attribute to an img element Nov 24, 2020
@layershifter
Copy link
Member

Thanks for fixing this ❤️

@layershifter layershifter merged commit 1c8b20b into Semantic-Org:master Nov 24, 2020
@noinkling noinkling deleted the patch-2 branch November 25, 2020 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants