Moved requirejs config
authorAlexander Ebert <ebert@woltlab.com>
Thu, 21 May 2015 18:58:53 +0000 (20:58 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 21 May 2015 18:58:53 +0000 (20:58 +0200)
com.woltlab.wcf/templates/headIncludeJavaScript.tpl

index c85d941bd9bf832eaa39a0e866c556f0737639dc..32cabd9e1c01726fc2e41fd52638c07a68deea5a 100644 (file)
@@ -9,6 +9,10 @@
        var LANGUAGE_ID = {@$__wcf->getLanguage()->languageID};
        var TIME_NOW = {@TIME_NOW};
        var URL_LEGACY_MODE = {if URL_LEGACY_MODE}true{else}false{/if};
+       
+       requirejs.config({
+               baseUrl: '{@$__wcf->getPath()}js'
+       });
 </script>
 
 {if ENABLE_DEBUG_MODE}
 {/if}
 
 <script data-relocate="true">
-       requirejs.config({
-               baseUrl: '{@$__wcf->getPath()}js'
-       });
-       
        {if ENABLE_DEBUG_MODE}
                {* force synchronous requests to prevent jQuery and other files being loaded to early *}
                var __require_createNode = require.createNode;