Forum Moderators: open
I noticed that when Google Bot visits my index page it always reads to 51.47 KB when my index page is a lot bigger than that. And it never gets to the end of the page. Can anyone explain to me how exactly does it read or to be more specific if I was to look into HTML properties of index how would I calculate where exactly does it stop.
Thank you
Do you think Flash buttons would have something to do with it?
Not unless the code is wrong or something.
If so is there a script that can make Bot by pass them and go trough the page?
If you think that's what's causing the problem, you can do something like this:
<script language="JavaScript" src="flashscript.js"></script>
And then put the Flash embed code into the script like this:
document.write("<embed flash movie code>");
Would you mind posting your code?
But if that is the code that Googlebot isn't indexing after then what I would do is move this code into an external JavaScript:
<!--
beginSTM("yfatchr","static","0","0","none","false","false","310","20","0","250","","blank.gif");
beginSTMB("auto","0","0","vertically","blank.gif","0","0","0","1","
Middle................. endSTMB();
endSTMB();
endSTM();
//-->
Then I would save that script in a separate folder called 'scripts' and reference it after the </HTML> tag if possible, like this:
</html>
<script language="JavaScript" src="scripts/externaljsfile.js"></script>
Because I don't think Googlebot indexes anything after the </HTML> tag - though I could be wrong.
And finally I would use the robots.txt file to disallow Googlebot from the 'scripts' folder.
That way there is no way that Googlebot can trip over your JavaScript code.
Yeah it is bad coding. But how will Googlebot know if it doesn't go past the </HTML> tag?
Although I suppose there are other things to consider such as HTML validation and how different browser's will handle it.
Anyways, after looking at your site Raven_X, it wouldn't be possible to move that script anywhere anyways because it's your navigation. If you move the code, you move your navigation. Just move it to an external JavaScript, place it in a separate folder and disallow that folder from the SE's and you should be fine.