From 164c8a091f96f18b359c52cbee28161b4cea9959 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 28 Oct 2016 10:18:20 +0100 Subject: [PATCH] Move the `scripts` block after jQuery has been loaded and CDN logic. Fixes issue on the update-billing-info page. --- services/web/app/views/layout.jade | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/web/app/views/layout.jade b/services/web/app/views/layout.jade index 7f5cfd891f..8f4d1263db 100644 --- a/services/web/app/views/layout.jade +++ b/services/web/app/views/layout.jade @@ -51,8 +51,6 @@ html(itemscope, itemtype='http://schema.org/Product') script(type="text/javascript"). window.csrfToken = "#{csrfToken}"; - block scripts - script(src=buildJsPath("libs/jquery-1.11.1.min.js", {fingerprint:false})) script(type="text/javascript"). var noCdnKey = "nocdn=true" @@ -61,6 +59,9 @@ html(itemscope, itemtype='http://schema.org/Product') if (cdnBlocked && !noCdnAlreadyInUrl && navigator.userAgent.indexOf("Googlebot") == -1) { window.location.search += '&'+noCdnKey; } + + block scripts + script(src=buildJsPath("libs/angular-1.3.15.min.js", {fingerprint:false})) script.