Concrete5 Javascript Code in Header and SEO

Permalink
Hi there,

Please check out the following image: http://screencast.com/t/ZGRlODEw...

I notice that Concrete5 adds about 20 lines of code to the top of the header of a site. Now, this is not the end of the world SEO wise, but it would be nice if it were possible to either a) remove some of this code and/or b) add lines 17 - 27 (see accompanying image) to an external Javascript file. I'd like to give the Search Engine spiders as much as a head start as possible:).

Is this possible? If so, how?

Thanks in advance,

Moshe

 
Remo replied on at Permalink Reply
Remo
you won't be able to remove cid unless you create a javascript file for each page or if you create javascript files dynamically. Both things are silly.

Adding an additional, dynamic javascript is also not a good thing because increasing the numbers of tcp connections and/or adding some more dynamic code generation slows down the page rendering process.

This would be worse than have a few lines of code in the header.

You can still customize this if you really think you won't get any visitors from google due to this very very minor detail. Look for header_required.php in elements
StriderSEO replied on at Permalink Reply
StriderSEO
These few lines aren't going to be an SEO issue, though they could be reduced a bit.

You can also look at minifying (http://code.google.com/p/minify/downloads/list) your CSS and JS files to reduce the page load time, which is going to be more of an SEO factor than the few lines of parameters.

Ryan
triplei replied on at Permalink Reply
triplei
I was taking a look through /libraries/view.php and notice that it looks like minification was built into the core at one point, but is commented out at the moment. Does anyone know if this is going to be making a comeback in 5.4?
ScottC replied on at Permalink Reply
ScottC
i haven't looked at block dependencies at all but it seem like all those things would be only useful when the page is actually in edit mode, so the right check and most of that shouldn't appear unless the page is in edit/move mode?
Fernandos replied on at Permalink Reply
Fernandos
I've the same impression that this isn't needed when logged out.

I even removed it without problems, it's only enabled when logged in.

Simply surroud it with: if (User::isLoggedIn()) {..