Conflict with Siteground Optimizer
-
The plugin doesn’t work with Siteground Optimizer’s frontend options “Combine JavaScript Files” and “Exclude from JavaScript Combination” enabled.
The fix for this is to add the below into your functions.php file:
// Exclude certain third party scripts from SG Optimizer async loading // // Exclude Address Auto-Complete Script// add_filter( 'sgo_js_async_exclude', 'js_async_exclude' ); function js_async_exclude( $exclude_list ) { $exclude_list[] = 'aafw'; return $exclude_list; } // Exclude certain third party scripts from SG Optimizer JS Combination // // Exclude Address Auto-Complete Script// add_filter( 'sgo_javascript_combine_exclude', 'js_combine_exclude' ); function js_combine_exclude( $exclude_list ) { $exclude_list[] = 'aafw'; return $exclude_list; }
- The topic ‘Conflict with Siteground Optimizer’ is closed to new replies.