diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/calendly/calendly.php')
-rw-r--r-- | plugins/jetpack/extensions/blocks/calendly/calendly.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/jetpack/extensions/blocks/calendly/calendly.php b/plugins/jetpack/extensions/blocks/calendly/calendly.php index 42653ff5..75c63a5c 100644 --- a/plugins/jetpack/extensions/blocks/calendly/calendly.php +++ b/plugins/jetpack/extensions/blocks/calendly/calendly.php @@ -186,7 +186,9 @@ function enqueue_calendly_js() { jQuery( 'body' ).on( 'ready_o2', function() { initCalendlyWidget() } ); // Else initialize widget without waiting. } else { - initCalendlyWidget(); + document.addEventListener('DOMContentLoaded', function() { + initCalendlyWidget(); + }); } }; |