<iframe> click to load

NOT lazyload; click a button instead anywhere in the whole <iframe> element so one won't mis-click; will ignore small / narrow <iframe>s.

目前為 2020-10-21 提交的版本,檢視 最新版本

作者
Crystal-RainSlide
評價
0 0 0
版本
1.1
建立日期
2020-10-05
更新日期
2020-10-21
尺寸
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或关注我们的公众号极客氢云获取最新地址