Hello,
Whats the best way to load a dependency for a specific page, or in my case “not for the admin”
I’ve tried the below within the function assets() but it doesn’t seem to make any difference.
if( !is_admin()){
wp_enqueue_script(‘dependencies’, Assets\asset_path(‘scripts/dependencies.js’), [], null, true);
}
Thanks, Stephen