|
|
@@ -8,6 +8,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|
|
window.similarproducts = true
|
|
|
style [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {display: none !important; display: none; }
|
|
|
|
|
|
+
|
|
|
-if (typeof(gaExperiments) != "undefined")
|
|
|
|!{gaExperiments}
|
|
|
|
|
|
@@ -52,7 +53,15 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|
|
|
|
|
block scripts
|
|
|
script(src=buildJsPath("libs/jquery-1.11.1.min.js", {fingerprint:false}))
|
|
|
+ script(type="text/javascript").
|
|
|
+ var noCdnKey = "nocdn=true"
|
|
|
+ var cdnBlocked = typeof jQuery === 'undefined'
|
|
|
+ var noCdnAlreadyInUrl = window.location.href.indexOf(noCdnKey) != -1 //prevent loops
|
|
|
+ if (cdnBlocked && !noCdnAlreadyInUrl) {
|
|
|
+ window.location.search += '&'+noCdnKey;
|
|
|
+ }
|
|
|
script(src=buildJsPath("libs/angular-1.3.15.min.js", {fingerprint:false}))
|
|
|
+
|
|
|
script.
|
|
|
window.sharelatex = {
|
|
|
siteUrl: '#{settings.siteUrl}',
|