function load_n8n_demo_scripts() {
wp_enqueue_script(
‘webcomponents-loader’,
‘https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.0.0/webcomponents-loader.js’,
array(),
null,
true
);
wp_enqueue_script(
‘lit-polyfill’,
‘https://www.unpkg.com/lit@2.0.0-rc.2/polyfill-support.js’,
array(),
null,
true
);
wp_enqueue_script(
‘n8n-demo’,
‘https://cdn.jsdelivr.net/npm/@n8n_io/n8n-demo-component/n8n-demo.bundled.js’,
array(),
null,
true
);
}
add_action(‘wp_enqueue_scripts’, ‘load_n8n_demo_scripts’);