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

Remove Duplicate CSS Selectors from the final content #236

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Remove Duplicate CSS Selectors from the final content #236

wants to merge 2 commits into from

Commits on Feb 7, 2018

  1. 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.
    emadha committed Feb 7, 2018
    Configuration menu
    Copy the full SHA
    1169514 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2018

  1. Minify Customizations

    Adding $options to minify, usefull for customizing behaviours, etc.
    emadha committed Feb 8, 2018
    Configuration menu
    Copy the full SHA
    70612c0 View commit details
    Browse the repository at this point in the history