django_compressor icon indicating copy to clipboard operation
django_compressor copied to clipboard

Split into multiple files to avoid CSS files larger than what IE supports

Open Afnarel opened this issue 10 years ago • 1 comments

Hi,

Internet Explorer stops parsing CSS files after reading 278kb: http://stackoverflow.com/questions/12520666/ie8-9-maximum-bytes-for-css-file

When django-compressor compresses all the CSS files, I think it should take this into account. The best way would probably be to add a setting like ENABLE_IE_SUPPORT (True/False) that, if True, would split the generated CSS file into smaller ones weighing less than those 278kb.

It could also take into account the limit set by IE of 4095 (or 4096?) CSS selectors per file.

What do you think?

Afnarel avatar May 11 '15 14:05 Afnarel

the same request!!!

lovemyliwu avatar Dec 19 '15 13:12 lovemyliwu