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

Dashicons is a large dependency for one icon #5331

Closed
Shelob9 opened this issue Jan 2, 2017 · 6 comments
Closed

Dashicons is a large dependency for one icon #5331

Shelob9 opened this issue Jan 2, 2017 · 6 comments

Comments

@Shelob9
Copy link
Contributor

Shelob9 commented Jan 2, 2017

As far as I can tell dashicons are only being enqueued to show the padlock on the checkout form. That is a 28.6 kB file for one icon. I think it would make sense to use an inline svg, or maybe add a cut down version of dashicons to main stylesheet.

@samikeijonen
Copy link
Contributor

samikeijonen commented Jan 2, 2017 via email

@samikeijonen
Copy link
Contributor

samikeijonen commented Jan 2, 2017 via email

@samikeijonen
Copy link
Contributor

samikeijonen commented Jan 2, 2017 via email

@Shelob9
Copy link
Contributor Author

Shelob9 commented Jan 3, 2017

@samikeijonen That's good to hear. I de enqueued it on our site. I used a PNG icon instead.

Question: Should I open issues in other plugins that are doing this (I think it was EDD Recurring and AffiliateWP that I saw, but will have to check) or is that part of your plan?

@samikeijonen
Copy link
Contributor

Here is the PR: #5177.

Should I open issues in other plugins that are doing this (I think it was EDD Recurring and AffiliateWP that I saw.

I'd say yes if they are using Dashicon in different place than in EDD Core. Naturally AffiliateWP is a different story:)

@sunnyratilal
Copy link
Contributor

Closing as this was fixed in #5166

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

3 participants