=== Disable Block CSS ===
Contributors: snehalpancholi
Tags: performance, block css, gutenberg, optimization, stylesheet
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

Dequeues the wp-block-library CSS on pages that contain no Gutenberg blocks, reducing unnecessary stylesheet loads.

== Description ==

WordPress loads `wp-block-library.css` (and related block stylesheets) on every frontend page — even pages that contain no blocks at all. This adds unnecessary HTTP requests and render-blocking CSS.

**Disable Block CSS** checks whether the current post contains any Gutenberg blocks. If not, it removes:

* `wp-block-library` stylesheet
* `wp-block-library-theme` stylesheet
* `global-styles` stylesheet
* Optionally: WooCommerce block stylesheets

**Features:**

* One-click enable/disable toggle
* Exclude specific post/page IDs from the dequeue (e.g., pages you know use blocks via a page builder widget)
* Optional WooCommerce block CSS removal
* Zero configuration required for most sites — defaults work out of the box
* Supports the AddonLogic auto-update system

== Installation ==

1. Upload the `disable-block-css` folder to `/wp-content/plugins/`
2. Activate through **Plugins → Installed Plugins**
3. Go to **Settings → Disable Block CSS** to configure

== Frequently Asked Questions ==

= Will this break my Gutenberg pages? =
No. The plugin only removes block CSS when the current page contains zero Gutenberg blocks. Pages with blocks keep their stylesheets.

= Some icons are missing after activation. What do I do? =
Add that page's post ID to the Excluded Post IDs field.

= Does this work with Full Site Editing (FSE) themes? =
Block themes often rely on `global-styles` for layout. Test with your specific theme before enabling in production.

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.

== Screenshots ==

1. Settings page with enable toggle, WooCommerce option, and excluded IDs field.
