Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Afnarel opened this issue May 11, 2015 · 1 comment

Comments

@Afnarel
Copy link

Afnarel commented May 11, 2015

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?

@lovemyliwu
Copy link

the same request!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants