If my URL's are static, but then parsed by Javascript, does that make it crawlable?

Posted by Talasan Nicholson on Pro Webmasters See other posts from Pro Webmasters or by Talasan Nicholson
Published on 2012-06-25T23:03:33Z Indexed on 2012/06/27 15:27 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

Lets say I have a link:

<a href="/about/">About Us</a>

But in Javascript [or jQuery] catches it and then adds the hash based off of the href attribute:

$('a').click(function(e) {
    e.preventDefault();
    // Extremely oversimplified..
    window.location.hash = $(this).attr('href');
});

And then we use a hashchange event to do the general 'magic' of Ajax requests. This allows for the actual href to be seen by crawlers, but gives client-side users with JS enabled an ajax-based website.

Does this 'help' the general SEO issues that come along with hashtags? I know hashbangs are 'ok', but afaik they aren't reliable?

© Pro Webmasters or respective owner

Related posts about seo

Related posts about JavaScript