Skip to content

Update README.md #66

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

Merged
merged 1 commit into from
Jul 30, 2013
Merged

Update README.md #66

merged 1 commit into from
Jul 30, 2013

Conversation

lukasz-jakub-adamczuk
Copy link
Contributor

fixing typo

fixing typo
@lukasz-jakub-adamczuk
Copy link
Contributor Author

One question about parser class. It possible to remove unused rules after parsing css file. Unused rules i a string or array of selectors. You can check Audits in Chrome, and remove unused CSS rules.

Example
142 rules (54%) of CSS not used by the current page.
site.css: 56% is not used by the current page.
pre
h2
h4
#releaseBox, #candidateBox
#releaseBox h4, #candidateBox h4
#releaseBox h4
#candidateBox h4
...

sabberworm added a commit that referenced this pull request Jul 30, 2013
@sabberworm sabberworm merged commit f07018f into MyIntervals:master Jul 30, 2013
@sabberworm
Copy link
Collaborator

@lukasz-jakub-adamczuk Regarding your question about removing unused selectors: I think it’s an interesting idea but you’ll be much better served by using https://github.com/operasoftware/ucss than rolling your own solution using the PHP-CSS-Parser.

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

Successfully merging this pull request may close these issues.

2 participants