How to echo JS right after enqueued script to put it into noConflict mode?
You have to filter script_loader_src, check if you are on the correct script and add a one-time filter for clean_url. Then add your extra script, and make sure the output is syntactically valid. Pretty simple, albeit rather hacky. class Extra_Script { private $extra = []; private $handle; private $url; private $versioned_url; public function __construct( $handle, … Read more