Skip to content

Not working at IE8 #202

Closed
calderon opened this Issue Jun 12, 2013 · 10 comments

7 participants

@calderon

Hi! I just added respond.js to my new project and I can't achieve to make it work.

It seems a JS error:

Invalid procedure call or argument
respond.js Line: 284
Code: 0 Char: 13
Uri: http://192.168.1.103:3000/assets/respond.js?body=1

It seems to be theses lines:

          if ( ss.styleSheet ){ 
            ss.styleSheet.cssText = css;
          }
          else {
            ss.appendChild( doc.createTextNode( css ) );
          }

But I really can't understand why. If I open the IE8 responsive test page, it works like a charm.

Any idea?

@scottjehl
Owner
@calderon

Sorry, I can't :( it's still under development. I wonder if could be something weird (a character or similar) into the css var? The CSS is generated with some comments (the path to the file where it's the style). Could be that? I don't know, just guessing...

@cartierjf

+1
Have the exact same error.

@donaldpcook

This is the error you get if you have > 32 stylesheets in IE8. Concatenate your CSS and it should work.

@cartierjf

Did not know that. Thanks.

@hakimCZE

Probably should be written somewhere. I realy cant have concated stylesheets on devel enviroment, neither when debuging something

@scottjehl scottjehl pushed a commit that closed this issue Nov 15, 2013
Scott Jehl added note on IE max stylesheets
fixes #202
0c87b23
@scottjehl scottjehl closed this in 0c87b23 Nov 15, 2013
@Wilto
Collaborator
Wilto commented Nov 15, 2013

@hakimCZE: That’s not an issue with Respond—IE8 just discards any stylesheets beyond the thirty second one. You’ll see the same thing without Respond in place.

@hakimCZE

@Wilto yeah, i know, thats what I told other developers when I've implemented response.js. But it starts to be a time consuming issue, when you have much more stylesheets, or with stylesheets that are linked for a specific section, so they are always last

@scottjehl
Owner

Even though it's unrelated to this script, there's a note in the readme now. Thanks!

@khromov
khromov commented May 26, 2014

Does anyone know if this also happens when a stylesheet has more than 4095 rules? I am getting this error on a page but there are only about 10 stylesheets on the page. There is however one massive stylesheet which probably has in the vicinity of 4k rules.

http://blogs.msdn.com/b/ieinternals/archive/2011/05/14/internet-explorer-stylesheet-rule-selector-import-sheet-limit-maximum.aspx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.