From f21044942302c14e14e216eef7150aa30da4ac79 Mon Sep 17 00:00:00 2001 From: Arslan Ashraf Date: Tue, 26 Jan 2021 18:59:17 +0500 Subject: [PATCH] Introduce timeout for scripts such as Zendesk, Hubspot and defer GTM --- mitxpro/templates/base.html | 33 ++++++++++++++---------- mitxpro/templates/footer.html | 25 +++++++++--------- mitxpro/templates/partials/gtm_head.html | 2 +- 3 files changed, 33 insertions(+), 27 deletions(-) diff --git a/mitxpro/templates/base.html b/mitxpro/templates/base.html index eaf6bb675..526bfad69 100644 --- a/mitxpro/templates/base.html +++ b/mitxpro/templates/base.html @@ -33,9 +33,6 @@ {% block extrahead %} {% endblock %} {% endspaceless %} - {% if zendesk_config.help_widget_enabled and not request.path|startswith:'/certificate/' %} - - {% endif %}
@@ -61,18 +58,28 @@ {% block scripts %} {% endblock %} {% if zendesk_config.help_widget_enabled and not request.path|startswith:'/certificate/' %} - {% endif %} diff --git a/mitxpro/templates/footer.html b/mitxpro/templates/footer.html index d734b93f7..3733e957c 100644 --- a/mitxpro/templates/footer.html +++ b/mitxpro/templates/footer.html @@ -40,26 +40,25 @@

Contact Us

- -
diff --git a/mitxpro/templates/partials/gtm_head.html b/mitxpro/templates/partials/gtm_head.html index 2d2fad14f..f1702edef 100644 --- a/mitxpro/templates/partials/gtm_head.html +++ b/mitxpro/templates/partials/gtm_head.html @@ -1,5 +1,5 @@ {% if APIKEYS.GTM_TRACKING_ID %} -