Jump to content

Move scripts.min.js from header to footer


Jafar Muhammed

Recommended Posts

Hey Community,

I was trying to optimise my WHMCS installation.

I saw that scripts.min.js with a weight of 587KB is placed inside the head section.

<script src="{$WEB_ROOT}/templates/{$template}/js/scripts.min.js?v={$versionHash}"></script>

I tried to move this to the footer, but all the data table lists (invoice list, domains, services, etc.) inside the client area is broken.

Making a payment is impossible.

I have tried to defer and async, still same issue.

Anyone find a workaround to pull this heavy dude down to the earth?

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated