Chrome Extension

Show iframe only after fully loaded in HTML

<iframe style="display:none;" onload="this.style.display = 'block';" src="https://example.com" ></iframe>
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

You can hide your iframe until it fully loaded using this code as it shows white flash until it is fully loaded. If you want to capture the space of iframe you can use 'visibility: hidden' property.

Live demo

Was this helpful?
0 Comments
Join Devsheet Ask a Question