Skip to content

Commit

Permalink
Fixes #4593 Exclude additional hubspot domain from Minify and Defer J…
Browse files Browse the repository at this point in the history
…S (PR #4621)
  • Loading branch information
NataliaDrause committed Jan 11, 2022
1 parent 4549191 commit 2bf28d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/Engine/Optimization/DeferJS/DeferJS.php
Expand Up @@ -226,6 +226,7 @@ public function get_excluded() : array {
'/wp-includes/js/dist/url(.min)?.js',
'/wp-includes/js/dist/hooks(.min)?.js',
'www.paypal.com/sdk/js',
'js-eu1.hsforms.net',
];

$exclude_defer_js = array_unique( array_merge( $exclude_defer_js, $this->options->get( 'exclude_defer_js', [] ) ) );
Expand Down
Expand Up @@ -251,6 +251,7 @@ protected function get_excluded_external_file_path() {
'js.afterpay.com',
'cdn.enable.co.il/licenses/enable-',
'hcaptcha.com/1/api.js',
'js-eu1.hsforms.net',
];

$excluded_external = array_merge( $defaults, $this->options->get( 'exclude_js', [] ) );
Expand Down

0 comments on commit 2bf28d7

Please sign in to comment.