By Sean Carney on Sunday, 08 March 2015
Posted in Technical Issues
Replies 5
Likes 0
Views 875
Votes 0
I am hoping that you might consider taking a look at my site at https://www.starch-smart.com

Gzip compression code in .htaccess file:
I just added your code from http://stackideas.com/blog/optimizing-the-delivery-of-javascripts-on-joomla to the .htaccess file. I had been testing with the Caching disabled and the system cache turned off. I have now turned those back on again and tested again. Things do seem to have improved but mostly I wonder if it is because the caching has been turned back on. I am not sure that your code actually lowered the size of the javascript files. Maybe you can let me know if i set it up wrong in the .htaccess file!

My main hesitation with turning the caching back on for site is that i am using EasySocial modules a lot and it seems like the cache can prevent people from communicating in real time. ie. a cached page may be served without the most recent comment, etc... A prime example of that is the home page where I have Recent Social Activity being reported using the EasySocial Stream.

My hosting company which is CloudAccess.net suggests I may want to reduce the dynamic content from the home page. But... the whole point of EasySocial, EasyDiscuss and EasyBlog is the dynamic content. :-) OTOH, I may have to reduce the modules on the home page and replace them with Joomla article files describing what our service is.. Basically what I was trying to do was highlight some content from each of the StackIdeas components on the homepage so people would get a sample of the community activity:

EasySocial getResource calls:
if you go to tools.pingdom.com and put in https://www.starch-smart.com and then look at the timeline at the very bottom there are multiple calls to what appears to be the same process:

https://www.starch-smart.com/?option=com_easysocial&tmpl=component&no_html=1&controller=foundry&task=getResource


Can you tell me what that might be all about? Is there a way to reduce this? Do you have any idea where there might be such long server waits to receive the response?

This is actually happening on all my pages:

Home Page pulls dynamic content from multiple components:
https://www.starch-smart.com/
I probably just need to not pull from so many StackIdeas modules?
Makes the call three times?

EasySocial:
https://www.starch-smart.com/social
Makes the call five times?

EasyDiscuss:
https://www.starch-smart.com/forum
Makes the call three times?

EasyBlog:
https://www.starch-smart.com/blog
Makes the call three times?

I am all ears as to your suggestions how I can make my EasySocial, EasyDiscuss, and EasyBlog site as fast as possible so that people won't leave because of the slowness!

Thank you very much for considering and looking at this!
Hello Sean,

Hm, it looks like you have configured EasySocial to use the Development mode for javascripts. Not really sure why it was configured this way? But I have changed it to "Production" and less javascript files are being rendered on the page now. See my screen shot here, http://screen.stackideas.com/2015-03-08_1402.png

By the way, the optimization codes added in your htaccess is perfect as the script file sizes and css files are reduced down to close to 300%!

However, if I may add, you should start thinking about reducing the amount of plugins loaded on your site if they are unnecessary. I have seen a site that has close to 200 system plugins running and it's really bloating their site.

Nevertheless, the site is loading up pretty fast for me now Initial page load is under 2 seconds and it's awesome with so much stream items!
·
Sunday, 08 March 2015 14:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Mark,

That was a big step in the right direction. I was unaware that it was in Development mode. That was my mistake. Thank you for finding that and for checking my .htaccess file!

Do EasyDiscuss and EasyBlog have an similar development mode option?

I will start an inventory of my plugins and turn off everything that is not needed! Then I will delete them once I am sure!

Thank you again!
Sean
·
Monday, 09 March 2015 04:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sean,

Thanks for updating. Yes EasyDiscuss and EasyBlog have a similar development mode option. Always choose to 'production' mode to optimize the speed of your site. You can find the option from the following:
1) EasyDiscuss : backend > easydiscuss > settings > general > maintenance
2) EasyBlog : backend > easyblog > settings > workflow > maintenance

Hope these help
·
Monday, 09 March 2015 12:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Ezrul,

I set both of them to "Optimized" instead of Static which they were both set on. I did this because the EasyBlog tool tip said that Optimized is best if you have multiple StackIdeas components installed.

I will let you know if I have any problems.

Sean
·
Tuesday, 10 March 2015 00:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sean,

You are most welcome. Keep us updated
·
Tuesday, 10 March 2015 10:23
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post