(in_footer = false) at an early priority and is * NOT given defer/async, so it loads and executes synchronously ahead of the theme's * styles. Its config is attached as an inline "before" script so recorder.js stays a * static asset. Runs only for logged-in administrators on the front end (racn_enabled()). * * @package RobArtCatchNet */ if ( ! defined( 'ABSPATH' ) ) exit; // Register the recorder as a proper script (+ its inline config) early, so the handle // exists before
renders. wp_enqueue_scripts fires inside wp_head, AFTER our // wp_head:0 printer, so registering there is too late — register on wp_loaded instead. add_action( 'wp_loaded', 'racn_register_recorder' ); // Enqueue + flush the handle at the very top of , before wp_print_styles (wp_head // priority ~8), so the recorder runs before the stylesheets — the whole point of the tool. // do_items() emits it through core's own printer (no raw