By Marc on Saturday, 14 November 2020
Posted in General Issues
Replies 10
Likes 0
Views 624
Votes 0
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.
The scripts are actually needed if the quick registrations are enabled. Do you have quick registrations enabled on the site?
·
Sunday, 15 November 2020 15:35
·
0 Likes
·
0 Votes
·
0 Comments
·
No. Quick registrations are not used.
·
Sunday, 15 November 2020 20:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the info Marc. We will look into this further.
·
Monday, 16 November 2020 14:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Marc,

I have investigated further and the scripts are still necessary because:

1. The textbox that has the field are rendered using js and it uses js events to make the label appear within the input, https://take.ms/SlGxt

2. For sites that uses the single sign on (fb, apple, twitter or linkedin), it requires js too.
·
Monday, 16 November 2020 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the update.
is there any way we can defer the loading of the js script?
·
Monday, 16 November 2020 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Marc,

Unfortunately there is no way to defer EasySocial scripts because inline scripts will hit errors and cause the page to break.
·
Tuesday, 17 November 2020 17:43
·
0 Likes
·
0 Votes
·
0 Comments
·
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.


Really agree. Can this be developed differently or removed or..? this is a performance killer..not working with defer & async too
·
Tuesday, 17 November 2020 19:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi ssnobben,

This has been investigated before and unfortunately, currently nothing can be done from our side.
·
Wednesday, 18 November 2020 17:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi ssnobben,

This has been investigated before and unfortunately, currently nothing can be done from our side.


Ok thats a pity.

You can imagine you have a huge "untouchable" file of 1.1Mb in size ( no sync/defer working) and that effect your loading time massively! And the negative loading effect of your ES/Joomla site is huge with Google SERP penalties There is no other js file effect that come into comparision of this monster..

And thats why I also have to have no ES login box module on my front page.
·
Friday, 20 November 2020 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your input on this snobben. We have tried to use deferred more than a dozen times and it just wouldn't work in a large ecosystem like Joomla. We have absolutely no idea what other extensions or templates are doing and there is no way for us to bulldoze our way because somehow or rather, you either break something or break your own extension.

Unfortunately if our answer to our customer is to "check with your template / extension provider because their JS is breaking EasySocial", majority of the customer is going to back with us "But this problem only happens when EasySocial is installed" and believe it or not, 90% of the time, the template or extension developer will never even respond or do anything about it.

We end up going through this viscous cycle that does not benefit anyone.

I hope you understand where we are coming from and as much as we want to keep this file as small as possible, we are talking about a full suite of social network that has tons of functionality.
·
Saturday, 21 November 2020 01:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post