From 143d0fb1b0dffd09c2d92214ba7ed9547c346cc8 Mon Sep 17 00:00:00 2001 From: Tonnie Nyabuto Date: Tue, 18 Jul 2023 17:04:22 +0300 Subject: [PATCH] Add wprocket exclusion --- php/src/class-plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/src/class-plugin.php b/php/src/class-plugin.php index ff9e0a2..78a7854 100644 --- a/php/src/class-plugin.php +++ b/php/src/class-plugin.php @@ -227,7 +227,7 @@ public function optimize_scripts( $tag, $handle ) { if ( self::JS_HANDLE_ANALYTICS === $handle && false !== strpos( $tag, ' src' ) ) { return substr_replace( $tag, - ' type="module" defer data-src', + ' type="module" nowprocket defer data-src', strpos( $tag, ' src' ), // Offset. strlen( ' src' )