By Gavin G on Friday, 30 May 2014
Posted in General Issues
Replies 12
Likes 0
Views 872
Votes 0
Hey guys,
I have been spending some time optimizing my landing page lately and I'm noticing something odd. I have kommento enabled for articles and I understand that kommento is loading along with it's js and css because it hooks to the article listing on my front page and updates them with a link, hits and other stuff. I don't care for my article listing being updated and I have turned everything off in the kommento settings (Layout/Frontpage) but when I refresh my front page, kommento is still getting loaded along with it's js/css.

Also, even worse, is that it's also loading Easysocial's massive js and css. Why on earth would it do that?

I have checked and double checked, and it's definitely kommento that is loading the ES stuff. If i disable kommento, the ES scripts are no longer loaded.

Basically I don't want kommento or Easysocial loading anything on my front page. I just spent a day converting all my Easyblog posts back to articles and moving all the kommento comments over so I could disable/remove Easyblog on my front page only to now have this problem with kommento/easysocial assets.

One other thing. Why do all the StackIdeas components use different versions of foundry? Turning on optimize for js is pointless because ES is using v4 and kommento/easyblog are using v3.2 so you end up with double foundry being loaded and using Static is even worse because the files are huge. I also have Easydiscuss but I haven't checked what version that is using but can we get them unified?

Please advise.
Hi,

Are you using the EasySocial Avatar integration in Komento? If so then EasySocial's script has to be loaded in order to render the profile avatar in Komento.
·
Friday, 30 May 2014 10:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason,
Yes I am using the avatar integration, but avatars are not displayed on article blog listings (my front page) and none of the other kommento integrations are turned on for the front page so I don't see why it's loading all of the kommento AND easysocial assets when they are not needed. Surely kommento should only be loading all of this when it's needed, which is when the article is actually viewed and the kommento system is showing below the article ready to take comments?

This problem is causing my front page to be bloated with more than 2MB of unnecessary JS/CSS resources. I can live with it loading the kommento JS/CSS if it's absolutely necessary (which I don't believe it should be, but anyway), but definitely not Easysocial which is almost 2MB of JS/CSS by itself.
·
Saturday, 31 May 2014 00:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you please make it so that kommento checks if it is needed on front page article listings before it includes it's own and easysocial's js/css assets?
I have had to turn off kommento on articles for the moment because it's making my front page an extra 2.4mb in unnecessary js/css.

Just so it's clear
My front page is set to Articles ยป Category Blog
I do not have any of the kommento Frontpage > Frontpage layout options enabled such as Show comment link, Shot hits etc. etc.
·
Tuesday, 03 June 2014 05:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Tested locally and by only turning on EasySocial avatar integration (without EasySocial Profile Popbox), Komento IS NOT loading scripts from EasySocial.

If this not the behaviour on your site, please provide us your site's access so that we can investigate this.
·
Tuesday, 03 June 2014 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for checking Jason and yes, turning off the ES avatar popbox stops the loading of ES assets thankfully, but I would prefer to keep that functionality on my Kommento avatars if possible.
Can it be changed to actually check if the avatar is even used on the page or not before loading all that stuff? Even the Kommento assets should not be loaded if not needed. This is a basic article blog layout - it doesn't even have avatars and I don't have any of the Kommento frontpage layout options turned on. It's my front page and I need it to be fast and lean for new (not logged in) users. I actually stopped using Easyblog because I wanted to cut some bloat from my site and spent a day converting all the blogs to articles and moving all the Kommento comments so I was really disappointed to find all this stuff being loaded by a basic article blog layout
·
Tuesday, 03 June 2014 11:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Yes of course.

Here are 2 files to patch to achieve this.

profileVendors.php goes into /components/com_komento/classes/
document.php goes into /components/com_komento/helpers/
·
Tuesday, 03 June 2014 12:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome, thanks Jason - it works. No more ES assets even with the popbox turned on. Now I will push my luck and nudge you about the Kommento assets too :P Any possible way to get rid of them on my blog layout?
·
Tuesday, 03 June 2014 12:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Unfortunately for this part it involves A LOT of logic changes here and there and for this I am not able to provide you a quick fix.
·
Tuesday, 03 June 2014 13:44
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem Jason. Maybe it's something you could look into for the next release?
·
Tuesday, 03 June 2014 14:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Yes definitely.
·
Tuesday, 03 June 2014 15:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Jason,
Did this get into the latest Kommento? I just want to find out if I should update or not. If it's not in the latest, and I update, can I still use those files you attached for me before or other stuff in them has changed too?
·
Friday, 15 August 2014 16:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Yes this is in the latest Komento.
·
Friday, 15 August 2014 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post