Answer the question
In order to leave comments, you need to log in
React | How to show stub while iframe is loading?
I have a frame that takes a long time to load. How can I stub it in react at load time?
<div id="loadImg"><div><img src="loading.gif" /></div></div>
<iframe src="...." onload="document.getElementById('loadImg').style.display='none';"></iframe>
Answer the question
In order to leave comments, you need to log in
How to know that iframe loaded?
Here it is written how to listen to iframe. And then with the help of react already manage the wrapper
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question