<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.

As of 2020-10-21. See the latest version.

Author
Crystal-RainSlide
Ratings
0 0 0
Version
1.1
Created
2020-10-05
Updated
2020-10-21
Size
1.55 KB
License
N/A
Applies to
All sites

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: