0

I'm developing a site which is heavily loaded with ajax. Not very practical in SEO terms and that's why I am here. The thing I'm thinkin about doing is using the <noscript> tag to implement headers and footers for non-javascript users and googlebot etc. Example

<noscript>
<html>
<head><title="Blah"></head>
<body>
</noscript>

<div> NORMAL CONTENT HERE </div>

<noscript>
</body>
</html>
</noscript>

Am I correct in my use of noscript? If not please just regard it as the correct use. Anyways, this will enable my google crawls to be more successful and index each and every page.

The problem? When a user clicks on a page link in google that isn't indexed. HTML (as thats where the ajax is situated) they will only see the <div> in the center that isnt wrapped in noscript, thus meaning the visitor gets a dreadful view of the site, and has no navigation to browse the site. Am I right? Are you following me?

I want to know if theres a function that will parse the content wrapped in noscript to javascript enabled browsers upon first visit to the site. Is this possible? Or maybe you have an alternative? Maybe an include that detects if javascript is enabled and displays content based on that?

ALL suggestions welcomed here.

4
  • Java is not the same thing as JavaScript! I don't see what this question has to do with ajax, beyond its relevance to JavaScript. Also, googlebot executes (at least some) JavaScript on pages these days. Commented Mar 12, 2011 at 19:31
  • This link, too Commented Mar 12, 2011 at 19:37
  • for the sake of not writing javascript countless times, java was a short alternative. Yes JS would be better. And relevance wise, the ajax calls run my whole website, so its pretty crucial really in mentioning this.. this question wouldnt exist otherwise (no ajax, no problem). I really should explain more. Commented Mar 12, 2011 at 23:11
  • 1
    Not to beat a dead horse, but Java is another programming language which is frequently confused with JavaScript. You're right: abbreviate it JS. Commented Mar 12, 2011 at 23:26

2 Answers 2

1

Ok. You can improve this by:

  • Use normal links with normal (valid) hrefs. But the js function that is bound to them returns false. So the links would work with or without JS
  • Make your javascript recognize url parameters and show the appropriate div
  • And then, you don't need to use <noscript>
Sign up to request clarification or add additional context in comments.

Comments

0

perhaps create a redirect on your web server?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.