-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dynamically adding and removing iframe creates milestone event loop #19
Comments
@L-Triple-O just to be clear, are you saying that when the same video is added-and-removed from a web page constantly, then each time during playback, the milestones get tracked? i.e. Page loads |
Hi @yuhui , Page loads |
@L-Triple-O alright, I understand the problem now. Currently, my extension doesn't handle unloading of videos. So when that action occurs, the tracking setup still persists, resulting in the loop that you're experiencing. I'll have to update my extension to handle video unloading. In the meantime, unfortunately, I don't believe there is a workaround aside from forcing a page reload when unloading videos (which might not be desirable for you). |
@yuhui thanks for noting the issue and the insight on no real workaround for it. You're right, forcing a page reload isn't really an option. It's a great extension and I hope with this update we can move back to using it! |
Describe the bug
When an iframe is constructed, added and removed from the page dynamically, it seems to create a loop with triggering milestone events. This seems to happen if the action is performed quickly.
To Reproduce
Steps to reproduce the behavior:
Here is an example of adding a video dynamically: https://codepen.io/l-triple-o/pen/podPQYN.
Expected behavior
Opening and closing the video does not continue to trigger Video Milestone event from extension.
Desktop
The text was updated successfully, but these errors were encountered: