Ad

SEO Issue: Use ASHX In The Src Of Script Tag

- 1 answer

If I called an ashx page as the src for a script tag and it outputs all the values and a document.write of the contents. Would this been seen by the robots or would this text not get picked up at all since its in a script tag?

For example,

<script src="sitemenu.ashx" type="text/javascript"></script>

SEO is one of the requirements of the project and so I wanna ask if this is okay to have my site menu in the .ashx file.

Thank you.

Ad

Answer

The problem is not the ASHX, it's document.write.

Dynamically client-side built documents do not get indexed by the major search engines.

Ad
source: stackoverflow.com
Ad