diff --git a/src/Actions.php b/src/Actions.php index 257f1ff..77110f7 100644 --- a/src/Actions.php +++ b/src/Actions.php @@ -60,7 +60,10 @@ public function maybe_register_assets() { Helpers::get_js_url( true ), '', $version, - apply_filters( 'plausible_load_js_in_footer', false ) + [ + 'in_footer' => apply_filters( 'plausible_load_js_in_footer', false ), + 'strategy' => 'defer', + ] ); // Goal tracking inline script (Don't disable this as it is required by 404).