onReady not called on iOS Safari
See original GitHub issueI am loading an .mp4 file from AWS. On OSX Safari it is working fine, no problems, but on iOS the onReady
function is never called. This happens both on v0.25.3, and the latest (v1.2.1) so it’s not a recent bug. I did not find any info about this in the “Mobile considerations” section, however.
Is this a known issue? Are there any workarounds?
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
onReady not called on iOS Safari · Issue #340 - GitHub
I am loading an .mp4 file from AWS. On OSX Safari it is working fine, no problems, but on iOS the onReady function...
Read more >$(document).ready not firing on iOS - Stack Overflow
I've found the problem: Somewhere in my code, i had a function with a predetermined value, and only Safari thrown an error.
Read more >jquery not working on iphone - Qualtrics Community
Hello, I am adding this code to remove the blank option for the drop down list.
Read more >Document: DOMContentLoaded event - Web APIs | MDN
The DOMContentLoaded event fires when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, ...
Read more >Fixing Safari's back button browser cache issue with vanilla JS
Fixing Safari's back button browser cache issue with vanilla JS. Safari has a weird “quirk.” If you navigate from one page to another...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I hope my patch could help anyone landing here:
Yup, this seems to be the problem. In my case, this created a serious usability issue, as I display a loading spinner overlay until I get the
onReady
. So when I never get this, the user can never interact with the video 😃I worked around it now by checking the user agent for iOS, and disabling the page’s loading state manually in that case.
If we can’t do anything to fix this, I do think it would be a good idea to add this to the documentation, under
onReady
or at least the mobile considerations.PS: The problem was not related to the order of the calls — at least not for me. So, personally, I see no need to apply a fix there.