Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Duplicate CSS Selectors from the final content
i noticed that if i add two of the same (or content) the script will still show them, and that will add up to the final file size (content). for instance if i add default.css and default.css?v=1 and both have 'body{font-family:xx}, the final file will contain both files contents resulting in duplicate css selectors. i added a method which gets all css selectors and array_unique that with implode of a NULL glue. that will save a lot of data. for the example files i gave here it will cut the file size (and content) to half.
- Loading branch information