Forum Moderators: open

Message Too Old, No Replies

Script in Header Tag, SEO Problems?

Script in the header tag is excessive... problems for spiders?

         

brendontre

6:33 pm on May 8, 2009 (gmt 0)

10+ Year Member



I am recently coming on board with a site launch. Problem is, they have approximately 13-17 executable scripts that look similar to these:


$(function() { //document ready handler

$('#header-logout').one('click', function(event) {
surveyPopup('798422915');
});
$('#give-feedback').click(function(){
giveFeedback('815178671');
return false;
});

if(!document.getElementById('contact-page')) {
$('#contactusbox a').click(function() {
var left = calculateWidth();

etc.

I know spiders don't want to crawl these scripts before they get to the rich HTML content. My question is... how much can they take? Can they get through a significant amount of script before they get to the HTML and still spider the site adequately?

g1smd

8:13 pm on May 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Why not put all that stuff in an external file, or two?

brendontre

8:25 pm on May 8, 2009 (gmt 0)

10+ Year Member



Believe me, I've tried to coax them into that, but it's not going to happen prior to launch.

Basically we're stuck with that mess in the header tag... I've already notified executive management that its definitely not an ideal situation.

I'm just hoping to get an idea of what to expect.