JSFiddle - React, Tailwind, and code Playground
by tangphillip
HTML
<head>
<title>Firefox display:none; and $('iframe div').height() testing</title>
</head>
<!-- This onload happens after the iframe loads, so all code in iframe.html
runs before the reveal.-->
<body onload='reveal();'>
<iframe src="iframe.html"></iframe>
</body>
CSS
iframe {
display:none;
}
JavaScript
function reveal() {
document.getElementsByTagName('iframe')[0].style.display = 'inline';
}