AssetPilot – Granular control over frontend assets

Description

AssetPilot gives administrators and developers fine-grained control over frontend assets:

  • Disable scripts and styles
  • Defer and async scripts
  • Preload assets (scripts, styles, fonts, images)
  • Set fetchpriority on images and preloads
  • Apply rules conditionally (pages, archives, WooCommerce, device, auth, URL)

Getting started

Open Assets from the admin menu, scan a page URL, then create a rule from any asset row (or select several assets for a bulk rule). The Create Rule screen is opened from assets or recommendations — it is not a separate starting point in the menu.

Safe Mode

If the plugin causes issues, visit (while logged in as an administrator):
/wp-admin/?assetpilot-safe-mode=1

This disables frontend runtime modifications for the entire site (not just your browser). The admin UI, REST API, and asset scanning keep working. Clear any page cache after enabling if styles still look missing.

After repeated frontend fatal errors, runtime rules pause automatically for 30 minutes. Resume early from Settings or visit:
/wp-admin/admin.php?page=assetpilot-settings&assetpilot-resume-runtime=1

Development

Source repository: https://github.com/amrelarabi/assetpilot

Human-readable source for the admin and block editor UI lives in assets/src/. Compiled bundles in assets/build/ are generated with @wordpress/scripts.

Build prerequisites: Node.js 18+ and npm.

Build steps:

  1. npm install
  2. npm run build

Third-party frontend libraries (see package.json):

  • @xyflow/react — dependency graph screen
  • react-select — multiselect fields in the rule builder

PHP source is under includes/ and is loaded via Composer PSR-4 autoload (AssetControl\ namespace).

Screenshots

Installation

  1. Upload the plugin to /wp-content/plugins/assetpilot/
  2. Run composer install and npm install && npm run build
  3. Activate through the Plugins menu
  4. Go to AssetPilot in the admin menu

FAQ

Does this affect the admin area?

Currently only frontend assets are managed.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AssetPilot – Granular control over frontend assets” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release