Reduce js loading size for login module

When adding the ES login box module on a page, the ES site-3.2.21.min.js script automatically included. This file is 1.1Mb in size and is a blocking script, being neither deferred or loaded async.
So including a simple ES login module has a significant and disproportionate impact on page loading times & page rankings.

I have included 2 snapshots of Google lighthouse scores, with ES Login box enabled and with it disabled.
As you can see, the impact is very significant, being the difference between failing Googles Core Vitals test (and hence Search ranking penalties) and passing the test.
On top of that, the login box adds 4.6s to the "Time to first interaction" score, moving from 5.6s to a whopping 10.2s on mobile.

We need to only load the relevant login portions of the site.min.js file, not the entire script?
Otherwise using the login box on any page other than an ES page has a major negative impact on the user experience and page ranking scores.
Attachments (2)
Attachments can only be downloaded by logged in users

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Your time
Stack Ideas HQ
Support is

It is currently off working hours and most of us aren't around.

Rest assured that we will get back to your issues as soon as the day starts tomorrow!

Buy Us Coffee

Are you happy with our support and would like to buy us a cup of coffee?

Enjoy the Coffee!
Service via PayPal
Subscribe for product updates & promotions