[ad_1]
Hello @roberthemsing,
From what I can see, the resource is loaded from an external source. In that case you can exclude the external source form the JavaScript combine feature using the filter below:
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 there are any other scripts related to this plugin you can exclude them with the following filter:
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;
}All of the custom filters supported by SiteGround Optimizer can be found in the plugin’s documentation here:
More information on how to properly exclude certain script/s and to find its handler, please check the following thread:
If you need assistance excluding the script and you are a SiteGround customer, feel free to contact our Technical Support team and we will further assist you.
Best Regards,
Tsvetan Mitev
