We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
第389天 举例说明图片懒加载的方案有哪些?
我也要出题
The text was updated successfully, but these errors were encountered:
利用 getBoundingClientRect() 这个 API 获取图片元素相对于视口的位置,来判断是否需要加载图片
getBoundingClientRect()
利用 IntersectionObserverEntry接口 获取目标元素与容器的相交状态
IntersectionObserverEntry接口
Sorry, something went wrong.
这里我是用的IntersectionObserver API去实现的。
No branches or pull requests
第389天 举例说明图片懒加载的方案有哪些?
我也要出题
The text was updated successfully, but these errors were encountered: