手动加载 <iframe>

不是 lazyload;点击按钮而不是点击 <iframe> 元素,以免误触;会忽略大小较小的 <iframe> 元素。

目前为 2020-10-05 提交的版本。查看 最新版本

作者
Crystal-RainSlide
评分
0 0 0
版本
1.0
创建于
2020-10-05
更新于
2020-10-05
大小
1.5 KB
许可证
暂无
适用于
所有网站

Just modify the code to change the behavior. If you need a lazyload version, but can't code it yourself, I'm glad to say now you can do this by just set loading=lazy attribute to the <iframe> (and <img>) elements, for newest modern browsers:

And there are some lazyload libs for reference, for older browsers. Here is one of them:

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址