Current time: 12-06-2019, 01:58 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS/JS compress issues
05-09-2011, 07:42 AM
Post: #1
CSS/JS compress issues
It appears that whenever we we get a bad speed score, the Combine CSS/JS is either a D or a C. However, whenever we get a good speed score, we get a B or A in that same category.

We get A's in all other categories and we DO have a CDN although the speed tests does not recognize it in the score.

Our page speed would be very good but for the CSS/JS compress problems.

We have tried an assortment of compressors/combiners. We have received mixed and inconsistent results and no compressor seems to work.

When we tried finalizer, every time we would do a test and get a C, our speed would be slow and jomcomment error would appear in the CSS/JS results. In fact, we disabled jomcomment and the site went white with no content. WE put jomcomment back on and the site reappeared.

We tried JA Compress since our template is also Joomla Art.
Nope, still high speeds and errors with CSS/JS but great scores for the other categories.

So, do any compressor work? With joomla?
The very last test is:
http://www.webpagetest.org/result/110508_AQ_JJAG/

The errors are:
Combine static CSS and JS files: 50/100

FAILED - http://cdn338bwtog.bluehatnetwork.com/pl...jax_1.2.js
FAILED - http://www.statcounter.com/counter/counter.js
FAILED - http://www.bayoubuzz.com/plugins/system/.../style.css
FAILED - http://www.bayoubuzz.com/plugins/system/..._style.css
FAILED - http://www.bayoubuzz.com/plugins/system/.../style.css
FAILED - http://www.bayoubuzz.com/?file=t3-assets...n=gzip&v=1
FAILED - http://www.bayoubuzz.com/?file=t3-assets...n=gzip&v=1
FAILED - http://www.bayoubuzz.com/plugins/system/.../script.js
FAILED - http://www.google-analytics.com/ga.js

P.S. we even excluded those programs such as ajax, jom comment from the JA Compress and received the exact same results.

Your assistance is greatly appreciated.
Find all posts by this user
Quote this message in a reply
05-09-2011, 11:50 PM
Post: #2
RE: CSS/JS compress issues
Don't focus on the front-end right now. You have a serious back-end performance issue that you need to get under control. 11 seconds for the first byte time is crazy - it should be well under 1 second.

I have a completely un-tuned stock joomla install that I was playing with at joomla.patrickmeenan.com and even in that case the first byte times are a lot longer than you'd typically want - http://www.webpagetest.org/result/110509...4394b1202/

Turning on the built-in page caching in Joomla 1.6.2 helps stabilize the results a bit bit it's still not great - http://www.webpagetest.org/result/110509...5b76beb75/

Odds are the problem is being caused by a lot of queries to your database and probably poor database performance. You need to turn off any modules that you have installed that you aren't using and then look into options for query caches or page caches (or both).
Visit this user's website Find all posts by this user
Quote this message in a reply
05-10-2011, 12:19 AM
Post: #3
RE: CSS/JS compress issues
(05-09-2011 11:50 PM)pmeenan Wrote:  Don't focus on the front-end right now. You have a serious back-end performance issue that you need to get under control. 11 seconds for the first byte time is crazy - it should be well under 1 second.

I have a completely un-tuned stock joomla install that I was playing with at joomla.patrickmeenan.com and even in that case the first byte times are a lot longer than you'd typically want - http://www.webpagetest.org/result/110509...4394b1202/

Turning on the built-in page caching in Joomla 1.6.2 helps stabilize the results a bit bit it's still not great - http://www.webpagetest.org/result/110509...5b76beb75/

Odds are the problem is being caused by a lot of queries to your database and probably poor database performance. You need to turn off any modules that you have installed that you aren't using and then look into options for query caches or page caches (or both).

Thank you very much Patrick.
we did remove the modules recently and will check to ensure that all non-used modules are removed.

The cache is the cache that comes with Joomla Art.

I have done this search and will consider using one of these, if possible:
http://extensions.joomla.org/extensions/...ment/cache


The cache we use comes with the template Joomla Arts.

Once we do both, I will report back.
Since we are getting D's C's and F's associated with the Combine CSS/JS, other than the above, I am wondering if you have any specific recommendations for that problem or any specific solutions or fixes for those issues.

Saturday, we tried uninstalling jomcomment since the errors were repeatedly related to that component and in doing so, the screen immediately became white blank. We tried it again yesterday and unfortunately received the same result.

Last, do you think that mod_pagespeed for Apache might help? I have considered this although I understand it is still in beta.
Find all posts by this user
Quote this message in a reply
05-10-2011, 12:39 AM (This post was last modified: 05-10-2011 12:43 AM by pmeenan.)
Post: #4
RE: CSS/JS compress issues
mod_pagespeed would probably help with the combining and other front-end issues. It is still in beta but it is pretty stable, particularly for the basic optimizations. It won't help with the first byte time though and I recommend not working on anything else until you can get that under control.

As far as caching goes, I would look into the Query Cache module first and then once/if that is working add JotCache on top of it (both should co-exist and cache different aspects of Joomla).

There's a pretty good writeup of caching in Joomla here: http://www.theartofjoomla.com/joomla-cac...ained.html
Visit this user's website Find all posts by this user
Quote this message in a reply
05-10-2011, 12:44 AM
Post: #5
RE: CSS/JS compress issues
btw, after reading the article I actually enabled the system cache plugin and things improved to where I'd expect to see them - 200ms First byte times: http://www.webpagetest.org/result/110509...7b58de1df/
Visit this user's website Find all posts by this user
Quote this message in a reply
05-18-2011, 01:39 PM
Post: #6
RE: CSS/JS compress issues
Patrick,
we have followed your suggestions but it appears that our speed has not improved. However, our test scores have changed.
when we last communicated above, one of the tests http://www.webpagetest.org/result/110508_AQ_JJAG/ showed we had F's in CDN and combine jS/css and the rest were A's. The speed was 17 secs.

Now, we are getting B's (sometimes A's) in CDN and js/css, A's or B's in everything else except for combine text which we have an F. We are getting 4's on the Webpagetests yet when we actually time the opening, we are getting 16 to 20 seconds?
Here is a recent score yet within a minute of the test, we timed the speed of the front page via a time clock and it was about 10 seconds longer than this test. http://www.webpagetest.org/result/110518_K9_MH6R/

Do you have any other suggestions? I suspect it is taking time for the queries to the database but those softwares did not help.

Again, I do thank you for your response and unfortunately this issue is totally consuming my efforts as my online newspaper which is now in the 11th year is way too slow and is turning away readers.
S.
Thank you very much.
Find all posts by this user
Quote this message in a reply
05-18-2011, 08:56 PM (This post was last modified: 05-18-2011 08:56 PM by pmeenan.)
Post: #7
RE: CSS/JS compress issues
I added Blue Hat Network to the list of CDN's with the most recent release but however you have it implemented is completely wrong. It looks like you are doing redirects from your site to the CDN for static content. That actually DOUBLES the amount of time to load the resources and is way worse than just serving the files from your server directly. That means the actual URLs for the CDN requests need to be changed on the content itself (or with a plugin that does it automatically).

The newer test was also done on IE8 (the default changed yesterday from IE7). When you timed it, was it from a logged-in account? The server-side page caching only works for guest visitors so if you are logged into wordpress you will not be seeing the same experience as your users (and in that case the bulk of the time does come from generating the page).

Something changed to break you text compression (maybe one of the plugins changed the behavior or the .htaccess). That's actually a prety big deal because the site is delivering quite a bit of javascript (probably worth 1+ second).
Visit this user's website Find all posts by this user
Quote this message in a reply
05-31-2011, 06:48 AM (This post was last modified: 05-31-2011 06:50 AM by liomath.)
Post: #8
RE: CSS/JS compress issues
Is there any software to do it in my joomla site?

http://canadaexpert.ca
Find all posts by this user
Quote this message in a reply
06-01-2011, 12:33 AM
Post: #9
RE: CSS/JS compress issues
Depending on the version of Joomla you are using, Joomla has caching built-in (global configuration->system->cache settings).
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)