Skip to content

Commit

Permalink
Merge pull request #113 from xwp/add-wprocket-exclusions
Browse files Browse the repository at this point in the history
Add wprocket exclusion
  • Loading branch information
mehigh authored Jul 18, 2023
2 parents 7f46d97 + 143d0fb commit c918e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/src/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' )
Expand Down

0 comments on commit c918e54

Please sign in to comment.