From 91c39ee5a899fd3afbc63a63f2a562973abaf5d5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 6 Mar 2015 13:54:03 +0100 Subject: [PATCH] Defer loading of JavaScript to body end, avoid too early rendering --- .../templates/headIncludeJavaScript.tpl | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl index 921d0b5951..47a79436b6 100644 --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@ -13,20 +13,20 @@ //]]> {if JQUERY_SOURCE == 'google'} - - + + {elseif JQUERY_SOURCE == 'microsoft'} - - + + {elseif JQUERY_SOURCE == 'cloudflare'} - - + + {else} - - + + {/if} {if JQUERY_SOURCE != 'local'} - - - - - + + + + + {else} - + {/if}