Move `data-cfasync="false"` after `data-relocate="true"`
authorCyperghost <olaf_schmitz_1@t-online.de>
Tue, 16 Apr 2024 09:05:21 +0000 (11:05 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Tue, 16 Apr 2024 09:05:21 +0000 (11:05 +0200)
wcfsetup/install/files/lib/system/template/plugin/JsFunctionTemplatePlugin.class.php

index ec5e03d28569b6f53c683839eb1f52bf68a8efab..a36f569298a40e61a8d711aa4a4781a2098d660b 100644 (file)
@@ -110,7 +110,7 @@ class JsFunctionTemplatePlugin implements IFunctionTemplatePlugin
         $src .= '.js?v=' . LAST_UPDATE_TIME;
 
         $relocate = !RequestHandler::getInstance()->isACPRequest() && (!isset($tagArgs['core']) || $tagArgs['core'] !== 'true');
-        $html = '<script data-cfasync="false"' . ($relocate ? ' data-relocate="true"' : '') . ' src="' . $src . '"></script>' . "\n";
+        $html = '<script' . ($relocate ? ' data-relocate="true"' : '') . ' data-cfasync="false" src="' . $src . '"></script>' . "\n";
 
         if (isset($tagArgs['encodeJs']) && $tagArgs['encodeJs'] === 'true') {
             $html = StringUtil::encodeJS($html);