=== Remove Frontend Dashicons ===
Contributors: snehalpancholi
Tags: performance, dashicons, stylesheet, optimization, frontend
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Removes the Dashicons stylesheet from the frontend for non-logged-in visitors, saving an HTTP request and ~28 KB of CSS.

== Description ==

WordPress loads the Dashicons icon font on every frontend page, even though it is primarily used by the admin toolbar and backend UI. Most visitors never see an icon that requires Dashicons, yet their browser downloads and parses the stylesheet anyway.

**Remove Frontend Dashicons** dequeues `dashicons` from the frontend:

* Only for non-logged-in visitors by default (logged-in users keep Dashicons for the admin bar)
* Optionally for all visitors including logged-in users
* Supports removing additional stylesheet handles alongside Dashicons (e.g., for theme-loaded duplicates)

**Features:**

* One-click enable/disable
* Smart default: keeps Dashicons for logged-in users who need the admin toolbar
* Extra handles field: remove other unused stylesheets in the same pass
* Auto-update via AddonLogic update server

== Installation ==

1. Upload the `remove-dashicons` folder to `/wp-content/plugins/`
2. Activate through **Plugins → Installed Plugins**
3. Go to **Settings → Remove Dashicons** to configure

== Frequently Asked Questions ==

= My theme uses Dashicon classes in its CSS. Will this break it? =
If your theme references Dashicons icon classes (`.dashicons-*`) in its own stylesheet, removing Dashicons may cause icons to disappear. You can deactivate this plugin or add the affected pages' post IDs to any exclusion list you configure.

= How much does this actually save? =
Dashicons CSS is approximately 28 KB (uncompressed). Removing it saves one HTTP request and that transfer on every page load for non-logged-in visitors.

= Can I also remove it for logged-in users? =
Yes — uncheck the "Keep for Logged-in Users" option. Note this will hide admin toolbar icons for editors and contributors on the frontend.

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.

== Screenshots ==

1. Settings page showing the enable toggle and logged-in user option.
