Solved

Enabling compression in WARP Framework template

Posted on 2016-08-06
5
89 Views
Last Modified: 2016-08-07
Hello!

I use Joomla 3.6 and WARP 6 Framework template and it has an option to enable compression in a template manager. It says:
Combination+Minify+Data URIs+GZip

I enabled it and tested my site's speed. I've seen some improvement. Not something major, but...

My question is... So is it a good idea to enable compression like that? Is there anything bad about it?
I don't know anything about it pretty much, so any input is welcomed.
0
Comment
Question by:Member_2_7970041
  • 3
  • 2
5 Comments
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 41746153
Compression trades CPU cycles on the server and client for data-transmission time.  It's usually a good tradeoff in text-intensive sites and applications.  It's less valuable in image-intensive information because images do not compress as well as text.

In my experience, other good performance enhancements include using a task runner like Grunt to minify and combine external files, using optimized images, making sure the database is appropriately indexed, and using a server-side cache.
0
 

Author Comment

by:Member_2_7970041
ID: 41746155
Thanks for your reply!

So basically, there's no really a downside to it if it's not overloading the server, correct?
The difference is the number of requests. Without it being enabled there was about 120, and with it being enabled around 90. As per page loading times... The improvement is at best around 10-15%.
And the last thing I wanna know is this...I know there's an Apache GZip compression (it's not enabled on my server). If I use what I mentioned in my first post, is it best to keep Apache's compression disabled?
In other words, what's the difference between Joomla's compression and Apache's compression and how they can or can't co-exist?
0
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 41746157
Yes, there is no real downside.  The speed of modern servers is great, and you can't really control the speed of the client machine or the speed of data transmission over the internet.  So you almost certainly get some advantage at very little cost.

I can't answer fully about Joomla vs Apache compression, but my sense is that you probably want one or the other but not both -- double compression is like double encryption; there might not be much advantage there!  However I would try three test cases, just to see what happens.  Do one with Joomla's compression, do another with Apache compression and do a third test with both.  If I had to guess, I would guess that Apache compression would be preferable.
1
 

Author Comment

by:Member_2_7970041
ID: 41746165
Okay, so testing, testing and testing. As per testing, there's one thing that is not clear to me. I usually go to website speed testing sites like pingdom etc. Let's say, I wanna run two tests. The first with compression enabled and the second with it being disabled, OK? BUT... what about CACHE on pingdom's server? I can't clear it myself on THEIR server, right? So what MIGHT happen is that the second test would come from that server's cache, so the test overall won't be reliable. Or maybe their systems clear their cache after each test, who knows...
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 41746191
I don't know for sure about speed test sites, but I've used Chrome Dev Tools.  The Timeline tab works pretty well.  You can limit the effect of browser cache if you're taking those measurements in incognito mode.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question