Export to GitHub

css3-mediaqueries-js - issue #8

Hangs IE7/8 with usage of this js library


Posted on Aug 24, 2011 by Helpful Bear

What steps will reproduce the problem? 1. HTML 5 page full with contents, applied with css 2. LI with fixed width for <960px window size, and % width for more 3.

What is the expected output? What do you see instead? As does it displayed in IE9, FF5. In IE7,8 it hangs browser, and only body background load, nothing else.

What version of the product are you using? On what operating system? Latest. Downloaded today.

Please provide any additional information below. I'm using following other js library on page.. jQuery v 1.6.2 hoverintent.js superfish.js jquery.placeholder-enhanced.min.js

Only if lt ie9 html5shiv - html5.js selectvizer pie.htc

I remove css3 mediaqueries js, and it works fine.

Comment #1

Posted on Sep 9, 2011 by Grumpy Panda

Same issue here. Hangs in ie7/8 when i include it in my page.

also latest version

Comment #2

Posted on Nov 10, 2011 by Massive Bear

I'm having the same issue. This locks up IE 7 and 8. Latest version.

Comment #3

Posted on Nov 29, 2011 by Massive Cat

Same here.

Locks up IE 7/8.

Using: semantic grid system (semanticgs.org) (and therefore lesscss javascript compiler)

Hopefully a resolution can be found, would be very useful.

Comment #4

Posted on Dec 1, 2011 by Happy Camel

Same here.

Locks up IE 7/8 (updated to latest).

using html5.js trunk and css3-mediaqueries-js trunk

Comment #5

Posted on Dec 5, 2011 by Helpful Bear

I had this issue too, the cause was a web font hosted on Google - it seems this script reloads all style sheets via ajax which caused IE to crash due to incorrect handling of a same origin policy security exception being raised.

Comment #6

Posted on May 29, 2012 by Happy Elephant

Hangs in IE7/8 for me too. Only seeing the background image, and nothing else, although all content is accounted for in the source code. In source code, there is an attribute "checkedByCssHelper='true'" attached to every HTML tag.

Comment #7

Posted on Jun 11, 2012 by Swift Elephant

If you are having this hanging problem, double check all of your stylesheets for any formatting issues. I know a missing curly brace will cause the hanging.

Comment #8

Posted on Jul 17, 2012 by Quick Lion

I had this issue. Turns out there indeed was a curly brace missing. Not for the 'main css' mind you, but for the @media query that surrounded my css. Embarrassed.

Comment #9

Posted on Sep 28, 2012 by Grumpy Elephant

If you use LESS css, do not go beyond 2 levels of {} It will lock IE too.

Comment #10

Posted on Oct 2, 2012 by Happy Bear

Between Martin and Gene this seems to be the answer. Max 2 levels of { body { wrap }} Do not forget to check for missing {} Just one out of place or missing and IE 8,7,6 and 5.5 are broken. Like Martin I found my missing @media screen and (min-width:...) Simple mistakes that are simple to correct. Thanks all for posting your findings, it saved me time.

Comment #11

Posted on Feb 21, 2013 by Happy Rabbit

For me the solution was only to include this on the page that I needed it, the hang was happening on a page I didn't need to be responsive.

The page it happened on + the one it didn't, both used the same CSS file.

Comment #12

Posted on May 9, 2013 by Grumpy Elephant

same here total lockup

Comment #13

Posted on Apr 4, 2014 by Happy Ox

Back from the dead... There is a new version of the script. It has some CSS parsing and processing improvements. If you're still using it, or would like to try again, could you confirm that this issue is solved or not?

Comment #14

Posted on Apr 22, 2014 by Quick Cat

Comment deleted

Comment #15

Posted on Apr 22, 2014 by Happy Dog

I still have the problem in IE8 with the newest version of the script. The only way to get out of the hanging script is waiting for the "a script is taking long to run - do you want to stop it" dialog, or restart the browser, so it's almost impossible to profile where the problem happens. For now I've gone with a custom JS solution with a window.resize handler instead.

Comment #16

Posted on May 30, 2014 by Swift Camel

I was having this crash in IE8 and I found the reason was in my css inside a @media query i had

@-moz-document url-prefix() { .page_title {

} }

Removing that removed the crashing problem.

Side note: download link for css3-mediaqueries-js doesn't work

Comment #17

Posted on Jul 10, 2015 by Helpful Kangaroo

there is version issue...

Status: New

Labels:
Type-Defect Priority-Medium