=== Enqueue Debug Panel === Contributors: webnow66 Tags: debug, enqueue, scripts, styles, javascript Requires at least: 5.0 Requires PHP: 7.2 Tested up to: 6.9 Stable tag: 1.0.0 License: GPL v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html A powerful debug panel for WordPress admins to view and toggle enqueued JavaScript and CSS files. Changes apply globally to all users instantly. == Description == Enqueue Debug Panel is a developer tool that allows WordPress administrators to: * View all enqueued JavaScript and CSS files with detailed information * See the handle, source URL, dependencies, and hook for each asset * Instantly dequeue or re-enqueue assets with a single click * Monitor changes that affect all frontend and admin users site-wide * Test asset dependencies and debug loading issues without code changes The panel is only visible to administrators and does not affect the functionality of other features on your site. == Installation == 1. Upload the `enqueue-debug-panel` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. Log in as an administrator on the frontend 4. Click "Debug Enqueues" in the WordPress admin bar at the top of the page 5. Toggle scripts and styles to test their impact on your site == Usage == 1. Visit any page on your WordPress site while logged in as an admin 2. Click the "Debug Enqueues" button in the admin bar (top right corner) 3. A panel will slide in from the right side showing all enqueued scripts and styles 4. Click "❌ Dequeue" to remove an asset from loading on all pages 5. Click "✅ Re-enqueue" to restore an asset 6. Changes persist across page refreshes and affect all users == Features == * **Complete Asset List** - See all enqueued scripts and styles with full details * **Instant Toggle** - Dequeue or re-enqueue assets without page reloads * **Global Changes** - Dequeued assets are removed for all users site-wide * **Dependency Tracking** - View dependencies for each asset * **Hook Information** - See which hook was used to enqueue the asset * **Admin-Only Access** - Panel is only visible to administrators * **Persistent Storage** - Changes are saved and persist across sessions * **Safe & Secure** - Includes nonce verification for AJAX requests == Frequently Asked Questions == = Does dequeuing assets affect other functionality? = No, dequeuing only removes the script or style tag from being loaded. It does not affect other functionality unless that functionality specifically requires that asset. = Will non-logged-in users see the dequeued assets? = No, dequeued assets are removed for all users, including non-logged-in users. Only administrators can make these changes through the debug panel. = Can I undo a dequeue? = Yes, simply click the "✅ Re-enqueue" button to restore any dequeued asset. = Is this plugin suitable for production? = While the plugin is safe to use, it's primarily designed for development and testing. Be careful when dequeuing assets on production sites, as it may break functionality if critical assets are removed. = Does the plugin affect site performance? = The panel only appears to administrators and has minimal impact on site performance. The dequeue functionality is efficient and based on WordPress' built-in `wp_dequeue_script()` and `wp_dequeue_style()` functions. == Changelog == = 1.0.0 = * Initial release * Admin panel for viewing all enqueued scripts and styles * Instant toggle functionality for dequeuing and re-enqueueing assets * Global dequeue affects all users * Full i18n support with text domain * Security features including nonce verification == Support == For support, bug reports, or feature requests, please contact Team Webnow. == Credits == Developed by Team Webnow Website: https://webnow.com == License == This plugin is released under the GPL v2 or later license. == Screenshots == 1. Screenshot 1 shows How you can open debug panel in frontend of your website.