Optimizing Website Speed

Permalink
I need a developer to install APC on my site. I believe it is the last hope for improving the performance of my incredibly slow website.

 
mhawke replied on at Permalink Reply
mhawke
Can you turn cloudflare off and see if that helps? Perhaps in your host's Control Panel somewhere.

I tested your site and it took 6 seconds to pull jquery.js from a cloudflare server and 5 seconds to pull typography.css from cloudflare. The browser waits for the js and css to get pulled down so this is an issue. If you Google 'cloudflare slow', there are lots of complaints.
andjaxini replied on at Permalink Reply
I turned cloudflare off but the site is still slow.

Below you will find a narrative of my saga.

If you look at my site on YSlow, it tells you that insightoffsite.com is making too many HTTP requests, that I need to add Expires headers, and to avoid AlphaImageLoader filter.

I have done these things regarding the YSlow recommendations:

1. (HTTP requests) My understanding is that I can't do anything about consolidating the stylesheets because I want to edit them through the customization panel and content blocks.
2. (Expire headers) I thought I'd taken care of this by adding this code to my htaccess file:
# -- Remove last-modified header --
<ifModule mod_headers.c>
Header unset Last-Modified
</ifModule>

# -- Expires Headers --

<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>

3. (AlphaImageLoader) YSlow pointed out that this filter is in the stylesheet: jquery.fancybox-1.3.4.css
I tried to remove it twice but maybe the system reinserted it because it keeps reappearing.

In addition I have tried the following:
1. I installed Miser which messed up my left-sidebar style. (Not dissing Miser) I'm sure if I was more savvy with the stylesheets I could have corrected it. But I'm not so I uninstalled it.
2. I installed Minifier and uninstalled for similar reasons.
3. I installed Xclydes Utilities but couldn't figure out how it worked.

I would have bought an add-on but there doesn't seem to be one.

After all that everything was so jacked up that I uninstalled and reinstalled Concrete5 and my theme Slate. I reinserted this code, that I found in the C5 forums, to my htaccess file:

# -- gzip compression --
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>

<ifmodule mod_deflate.c>

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>

# -- kill ETags --
FileETag none

# -- Remove last-modified header --
<ifModule mod_headers.c>
Header unset Last-Modified
</ifModule>

# -- Expires Headers --

<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType text/html "access plus 1 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>

Yesterday I tried to add the APC package to my site. But when I reached the command line level of programming I knew I was at the event horizon of my technical abilities.

The good news is that I've learned a whole lot. The bad news is that my site is still super slow. That's why I posted a job request.

:(
mhawke replied on at Permalink Reply
mhawke
You've been busy!

Those changes should have helped but the fact remains that no amount of tweaking can make up for an overloaded host server.

If switching hosts is not an option, the best solution I found was a thing called 'Bootstrapcache' found here:

http://www.mesuva.com.au/blog/technical-notes/an-extra-cache-for-co...

I like how it works because it destroys the cache as soon as I log in so I don't have to wonder if my changes are going to show up immediately. It also gives me a visual indicator that the page was cached or not.

Try it out. What have you got to lose?