Search code snippets, questions, articles... Chrome Extension

Show iframe only after fully loaded in HTML

<iframe style="display:none;" onload=" = 'block';" src="" ></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?
Join Devsheet Ask a Question