Subscribe on changes!

ImgHTMLAttributes should has a loading propety

avatar
Apr 29th 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"; }

avatar
Apr 29th 2021

It's an experimental attribute

avatar
Apr 29th 2021

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