Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix 'Operation aborted' error message in some versions of IE6. #122

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
6 participants

When using Respond.js at the end of the body element, some versions of IE will abort loading of the site with the message "Operation aborted". The site will not be rendered at all after this error occurs. This appears especially common with IE versions installed with tools such as MultipleIE.

This error is caused when the DOM is changed before the document is completely parsed. Attached is a fix, which just waits for the DOM ready event to fire if necessary.

Owner

scottjehl commented Apr 25, 2012

Hmm. Curious, do you have many stylesheets attached in the head? I've seen this before in that scenario.

On Apr 26, 2012, at 2:25 AM, Rolf Timmermans wrote:

When using Respond.js at the end of the element, some versions of IE will abort loading of the site with the message "Operation aborted". The site will not be rendered at all after this error occurs. This appears especially common with IE versions installed with tools such as MultipleIE.

This error is caused when the DOM is changed before the document is completely parsed. Attached is a fix, which just waits for the DOM ready event to fire if necessary.

You can merge this Pull Request by running:

git pull https://github.com/rolftimmermans/Respond operation-aborted-fix

Or you can view, comment on it, or merge it online at:

#122

-- Commit Summary --

  • Fix 'Operation aborted' error message in some versions of IE6.
  • Don't wait if document is already loaded.

-- File Changes --

M respond.src.js (13)

-- Patch Links --

https://github.com/scottjehl/Respond/pull/122.patch
https://github.com/scottjehl/Respond/pull/122.diff


Reply to this email directly or view it on GitHub:
#122

No, just one

Collaborator

mathiasbynens commented Apr 25, 2012

Relevant: more info on the “operation aborted” error in IE: http://mths.be/ieoa

FWIW, I've experienced this problem using RespondJS in Microsoft's IE6-XP VM for Parallels downloaded from http://www.modern.ie/en-US/virtualization-tools. Eventually solved by downloading latest version of respondjs but at the time, moving my modernizr.js script tag to be after the respond.js script tag seemed to help.

Patch by @rolftimmermans seems to fix the issue for me, although does cause a little flicker (oh well, it's only IE).

Collaborator

jefflembeck commented Nov 21, 2013

If this is still happening for anybody, please file an issue and include a simple example page where it is occurring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment