-
Notifications
You must be signed in to change notification settings - Fork 20.6k
fixes #12282, sometimes IE10 and lower have document.readyState == "interactive" way too early #901
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
Conversation
…interactive" way too early
// IE10 and lower don't handle "interactive" properly... use a weak inference to detect it | ||
// hey, at least it's not a UA sniff | ||
// discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 | ||
if ( document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading" ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's gotta be a better way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm all ears.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently no good way I can see to detect that IE9 and IE10 have fired interactive too early. Although, now that there's this repeatable test case, perhaps you can poke around too. For now, this seems to be the only way (although I agree it's dirty).
Thanks mike! I was getting gray hairs by this one... |
@peterschmidler Thanks. Keeping my fingers crossed that nothing pops up in chrome or Firefox! |
This fix was just what I needed after upgrading to 1.8.0. Looking forward to seeing it in a stable jQuery release (and NuGet package, in my case). Thanks, Mike! |
Change readyState example to handle IE9+ weirdness. See pull request: jquery/jquery#901
With tests! Conclusive, repeatable proof!