Hey there @dutchintouch,
I hope you are doing well!
If you wish to exclude a resource loaded from an external source, you can exclude external script from being combined using the filter we’ve designed for that purpose. Here’s an example of the code:
add_filter( 'sgo_javascript_combine_excluded_external_paths', 'js_combine_exclude_external_script' );
function js_combine_exclude_external_script( $exclude_list ) {
$exclude_list[] = 'script-host.com';
return $exclude_list;
}
If you’ve added the script as an inline script, you can exclude the inline script from being combined using the filter we’ve designed for that purpose. Here’s an example of the code:
add_filter( 'sgo_javascript_combine_excluded_inline_content', 'js_combine_exclude_inline_script' );
function js_combine_exclude_inline_script( $exclude_list ) {
$exclude_list[] = 'first few symbols of inline content script';
return $exclude_list;
}
If you still have any issues after that, feel free to reach back to us.
Kind regards,
Stoyan