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

Versão de: 21/10/2020. Veja: a última versão.

Autor
Crystal-RainSlide
Avaliações
0 0 0
Versão
1.1
Criado
05/10/2020
Atualizado
21/10/2020
Tamanho
1,55 KB
Licença
N/A
Aplicável a
Todos os 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:

长期地址
遇到问题?请前往 GitHub 提 Issues。