I'm on WHMCS 7.5.1. I noticed that the site places a single, minified js file, scripts.min.js, in its header:
<script type="text/javascript">
var csrfToken = '{$token}',
markdownGuide = '{lang key="markdown.title"}',
locale = '{if !empty($mdeLocale)}{$mdeLocale}{else}en{/if}',
saved = '{lang key="markdown.saved"}',
saving = '{lang key="markdown.saving"}',
whmcsBaseUrl = "{\WHMCS\Utility\Environment\WebHelper::getBaseUrl()}";
</script>
<script src="{$WEB_ROOT}/templates/{$template}/js/scripts.min.js?v={$versionHash}"></script>
I'm just wondering if it's safe to move this section to the footer so it does not "render block"? Just tried it on a site under development and seems fine so far at first glance. I wonder if others did the same and if this can potentially cause some issues for WHMCS.
Thanks.