SEO and speed enhancements on existing site1 user found helpful
First off, you have several jquery plugins that cannot be found (easing, fancy box and cloud zoom), a couple of images and whatever an "htc" file is. Clear up these 404 errors and you get back about 4 seconds.
Next. find your .htaccess file and paste the following in before any rewrite rules (be sure to expand the code window "View entire code block." so that you can copy all of the code)
Once that is done, we can talk about optimisation.
Feel free to write a "How To"; I've already explained it on several threads and it is commented. It originally comes from here:
If the OP doesn't know how to resolve missing files, a tutorial on Apache .htaccess is just going to confuse even more.
(Of course I could tell him to clear his browsers cache)
@mkly, .htaccess has no effect on CSS, apart from compression?
@Phallanx, I use a .htc file to make IE play with my CSS3 styles for rounded corners and drop shadows, etc.
<IfModule mod_deflate.c> SetOutputFilter DEFLATE <FilesMatch "\.(js|css|php|eot|ttf|otf|svg|html|)$"> Header append Vary: Accept-Encoding </FilesMatch> </IfModule> <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> Header set Cache-Control "public" Header set Expires "Wed, 13 Feb 2013 20:00:00 GMT" </FilesMatch>
little bit less code and I get a score of 96%, even with the things that I cannot control.
@fastcrash, see how you do with that?
Mind you, I have modified some of the C5 stuff to helps me.
Also, I'm not sure where the .htaccess file is. The only one I can find is in:
But I thought the file goes in the root directory. I've searched for hidden files as well and can't find it.
The .htaccess changes have nothing to do with Miser. It is server configuration to enable compression and header expiry info (if the modules are installed that is). It should be applied (or something similar) whether you use Miser or not.
If one doesn't exist, you can just create one (in your root). you should already have it if you use "pretty URLS" since that is where it is defined.
Your missing one of the htc files too ;) Or rather, you have probably an extra un-needed reference to it that doesn't exist.
These htc files. Are they performance killers like the eot ones? (i.e force the browser to download sequentially)
Webpagetest.org, nice resource.
htc no worse than some other elements, just sometimes a necessary evil.
Indeed. However, there are only two (other?) elements that cause a browser to download sequentially rather than parallel. @imports and font files (eot). Miser finds the CSS for @imports and merges it into the file that references it (i.e removes the sequential bottle-neck). It can't do much about eot files, but I was wondering if it should also target these htc files and see if it can do something about them too.
I shall have to investigate further.
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PUBLIC">
it's good to use this tag in C5?
abaout @import, so it's better to avoid using that because it's sequential?
Well. That meta says the browser can cache (it's the default). META directives are the poor mans alternative if you have no control over the headers.
Unlike headers, which can be applied to different files, this one is for the entire page. So telling a browser not to cache means that images and other large content won't be cached either.
In addition (and probably more importantly). META directives aren't read by proxy caches (you can think of these, in terms of the end user, as a similar function to CDNS).
Yes. Avoid @imports if you can .The only time you are not penalised by them is if they appear in the page itself (and the wind is blowing in an arbitrary direction). Embedding them in a style-sheet is not recommended in terms of performance.
But you're using Miser right? So put as many in as you like and Miser will merge them ;)
Thanks for the tips. Phallanx, I was able to make your htaccess changes. Unfortunately my designer has gone MIA and become unresponsive, so I have not been able to resolve the missing/bad links in the code.
Would anyone here be able to help with that for a small fee? I am clueless on how to find and fix the missing resources.
If no one else jumps in. I'll take a look. But you are probably better off using the opportunity to forge a relationship with some of the designers in the forums.
You'll need to PM a FTP account to whoever you choose so they can edit the files though. Make sure it is a trusted member of the community.
Also, to the SEO question, can anybody link a good thread if that has been addressed elsewhere?
Thanks Jordo, et al.
Yes and no. It's an addon that is on sourceforge rather than in the concrete5 market place. The thread is here:
A search for SEO in the forums will reveal a lot of links. It's one of those subjects where 2 people can have 3 opinions.
Later...lol Fastcrash beat me to it (living up to her name :) )