Skip to content

Commit

Permalink
#152 script / strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
inc2734 committed Jul 24, 2023
1 parent c134353 commit b141b83
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion App/Service/ReCaptcha/ReCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public function _wp_enqueue_scripts() {
SNOW_MONKEY_FORMS_URL . '/dist/js/recaptcha.js',
array_merge( $asset['dependencies'], array( 'google-recaptcha' ) ),
filemtime( SNOW_MONKEY_FORMS_PATH . '/dist/js/recaptcha.js' ),
true
array(
'strategy' => 'defer',
'in_footer' => false,
)
);

wp_add_inline_script(
Expand Down
5 changes: 4 additions & 1 deletion snow-monkey-forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,10 @@ public function _enqueue_assets() {
SNOW_MONKEY_FORMS_URL . '/dist/js/app.js',
$asset['dependencies'],
filemtime( SNOW_MONKEY_FORMS_PATH . '/dist/js/app.js' ),
true
array(
'strategy' => 'defer',
'in_footer' => false,
)
);

wp_add_inline_script(
Expand Down

0 comments on commit b141b83

Please sign in to comment.