New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any way to know when the page fetching is done? #8
Comments
Added a load event when the iframe loads: https://github.com/officert/vue-friendly-iframe/releases/tag/0.11.0 <vue-friendly-iframe :src="iframeSrc" @load="onLoad"></vue-friendly-iframe> |
Sorry, maybe I misunderstood or something. I have checked the code and tried the On my side, the |
Hmm yea the load event is trigger using the iframe's |
Yea those events work if you have access to the page inside the iframe, but you can't access those events from outside the iframe as far I know. |
Found a way to inject a script into the inner document and listen for the updated in V0.12.0 |
love you! ;D |
Let me know if this is working properly for you. I'm still not sure it actually works, as I'm seeing the readstatechange event fire before the iframe load event fires. |
I think it's because I'm simply writing some HTML and JS into the document here |
I have done a quick test and it came like this:
So I think as you said before, we do not have any message from inside the source to tell us about the event. Maybe in the future, we will have something, but I'm good to go with this version. Thanks for your time and effort. |
It could be great if we could have something like this:
The text was updated successfully, but these errors were encountered: