Skip to content

Fixes #7762: unload cleanup is called on IE7, IE8, but should be only on IE6 #136

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

Closed
wants to merge 1 commit into from

Conversation

iliakan
Copy link
Contributor

@iliakan iliakan commented Dec 18, 2010

The condition is already a hidden sniffing: "window.attachEvent && !window.addEventListener" sniffs for IE assuming that any IE leak, but that's not true. Only IE6 does.

On IE7 that may be visible as sluggishness and CPU load when leaving a page with many handlers on slow PC.

I added a check for non-existance of native XHR to ensure that only IE6 gets the code execute, so IE7, IE8 users don't execute the unnecessary code.

@csnover
Copy link
Member

csnover commented Dec 26, 2010

I’ve confirmed that there is no inter-page leaking in currently supported versions of IE6, so I am closing this pull request and opened a new one, #149

@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants