keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 246 forks source link

CSS rules in @media queries are being parsed unnecessarily #57

Open ianthedev opened 11 years ago

ianthedev commented 11 years ago

It is understandable that when selectivizr was being introduced, the mobile web was not popular. While nowadays, websites use media queries for their mobile versions becomes a trend.

It's unproductive to scan and parse those thousands of lines of CSS codes within media queries for IE8 and below as they don't support media queries at all.

So in the next release please consider removing codes of media queries before parsing. Thanks.

ianthedev commented 11 years ago

Or maybe provide an option to enable media queries parsing because users may want to use Respond.js or something for IE8 and below.

mike-engel commented 10 years ago

Yes, please leave an alternate path, as my team is using Respond.js, and need those media queries.