Chrome Extension

Show iframe only after fully loaded in HTML

<iframe style="display:none;" onload="this.style.display = 'block';" src="https://example.com" ></iframe>

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

Search history ×