Add `data-cfasync="false"` to script tags without src-attribute
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 16 Apr 2024 10:15:43 +0000 (12:15 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 16 Apr 2024 10:15:43 +0000 (12:15 +0200)
com.woltlab.wcf/templates/headIncludeJavaScript.tpl

index 90c0227d0b3f8a0019fab3b774c3e8f664ea40fa..922e669305ceb4f63938ced7ee1f1ff0989a4f5a 100644 (file)
@@ -2,7 +2,7 @@
        DO NOT EDIT THIS FILE
 *}
 
-<script>
+<script data-cfasync="false">
        var WCF_PATH = '{@$__wcf->getPath()}';
        var WSC_API_URL = '{@$__wcf->getPath()}';
        {* The SECURITY_TOKEN is defined in wcf.globalHelper.js *}
@@ -38,7 +38,7 @@
 {js application='wcf' file='require.linearExecution' bundle='WoltLabSuite.Core' core='true' hasTiny=true}
 {js application='wcf' file='wcf.globalHelper' bundle='WoltLabSuite.Core' core='true' hasTiny=true}
 {js application='wcf' file='3rdParty/tslib' bundle='WoltLabSuite.Core' core='true' hasTiny=true}
-<script>
+<script data-cfasync="false">
 requirejs.config({
        baseUrl: '{@$__wcf->getPath()}js',
        urlArgs: 't={@LAST_UPDATE_TIME}'