Internet Explorer limits number of external CSS files to 32

Do you know IE has a limit of 32 external CSS files? Do you know each file should be up to 288Kb to get parsed?

I didn’t know and found this just a little bit of time ago. As Google says IE has a bug (well, someone names this a limitation which makes sense): number of external CSS files you can import is 32, everything beyond the 32th file will be ignored. In addition to this – CSS file size cannot exceed 288Kb, otherwise it will be ignored as well. This limit is present in Internet Explorer 6/7 and 8.

Seems IE is the only browser with such a limit, other browsers worked well for me with 33 external style sheets (Firefox, Opera, Safari, Google Chrome, Konqueror).

Solution: aggregate multiple CSS files in bigger ones. As my experience shows – most files are 5-20Kb in size, and one 40Kb file is faster than 8x5Kb.

This entry was posted on Friday, February 20th, 2009 at 13:29 and is filed under Webmastering. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

4 Responses to “Internet Explorer limits number of external CSS files to 32”

The limit is not the file size but the number of selectors IE (including version 8) will parse per file. It’s 4096.

Thank you Konstantin, that’s interesting, will investigate :)

I have been exploring for a little for any high-grade articles or weblog posts on this kind of field . Exploring in Yahoo I eventually stumbled upon this article. Reviewing this item So i am happy to show that I have an extremely perfect uncanny feeling I found out namely what I needed. I such a lot without a doubt will make confident to do not omit this web blog and give it a look on a continuing basis.

Leave a Reply


required (will not be published)