IE9 does not load css fully

13,222

Bit late but for future visitors of this thread: I had the same problem and found out my project just had gotten too big. IE9 stops reading your stylesheet after 4095 selectors.

For reference: Does IE9 have a file size limit for CSS?

Share:
13,222
ole
Author by

ole

Hello world

Updated on July 19, 2022

Comments

  • ole
    ole almost 2 years

    I have css file:

    <head>
      <link rel="stylesheet" type="text/css" href="/assets/application.css" media="screen" />
      ...
    </head>
    

    With all browsers everything is fine(chrome,ff,ie8,ie10,...), except IE9.

    IE9 does not load css fully.

  • ole
    ole over 10 years
    No luck. Problem that I'm using external libs like semanti-ui or foundation and I can't strip all "bad" selectors.
  • Severin
    Severin over 10 years
    Have you checked that those frameworks are compatible with IE?
  • ole
    ole over 10 years
    Yep, compatibled with IE9.
  • Severin
    Severin over 10 years
    Hmm. You have probably tried inspecting the elements that don't get the right styling? Could it be that you use some vendor-prefixed selectors that are active in "normal" browsers but get ignored by IE?
  • ole
    ole over 9 years
    Thanks, it seems to be true.