@wordpress/asset-loader

Utility to dynamically load WordPress scripts and styles with dependency resolution.

Overview

This package provides a function to dynamically inject WordPress assets (scripts and styles) into the DOM with:

  • Dependency resolution – Respects WordPress dependency graphs via topological sort
  • Parallel loading – External scripts load in parallel for performance
  • Sequential execution – Inline scripts execute in the correct order