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

ImgHTMLAttributes should has a loading propety #3691

Closed
mankeheaven opened this issue Apr 29, 2021 · 2 comments · Fixed by #6160
Closed

ImgHTMLAttributes should has a loading propety #3691

mankeheaven opened this issue Apr 29, 2021 · 2 comments · Fixed by #6160
Assignees
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has PR A pull request has already been submitted to solve the issue scope: types

Comments

@mankeheaven
Copy link

mankeheaven commented Apr 29, 2021

What problem does this feature solve?

export interface ImgHTMLAttributes extends HTMLAttributes {
...
loading?: "lazy" | "eager" | "auto";
}

What does the proposed API look like?

export interface ImgHTMLAttributes extends HTMLAttributes {
...
loading?: "lazy" | "eager" | "auto";
}

@mankeheaven mankeheaven changed the title ImgHTMLAttributes should has a lazy propety ImgHTMLAttributes should has a loading propety Apr 29, 2021
@HcySunYang
Copy link
Member

It's an experimental attribute

@mankeheaven
Copy link
Author

ok,确实
mdn没看到说明
can i use 倒是说的比较明确
希望这个快点标准化吧,哈哈
我程序自己加个polyfill和重定义这个好了

@sxzz sxzz reopened this Apr 12, 2023
@haoqunjiang haoqunjiang added scope: types has PR A pull request has already been submitted to solve the issue 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Jun 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has PR A pull request has already been submitted to solve the issue scope: types
Projects
None yet
4 participants