jpd
jpd

Reputation: 11

Single page website with SEO friendly ajax & history

I am busy building a single page website. The basic layout of the page is as follows - one section below the other:

Each section will have a small menu inside it to ajax the content for the specific section. So Products section will have a product title menu, once clicked, product details will be ajaxed.

I can do these with normal techniques, but the problem is, I need the site to be SEO friendly, and indexed/crawled by Google.

I've never worked with it before, but history.js looks promising. I've done some testing, but can't find resources for my specific question. I am also open to other suggestions. All Ajaxed content will be separate HTML files - for SEO, hence the use of history.js sounding good to me.

Specific Questions:

Upvotes: 1

Views: 1192

Answers (1)

Konza
Konza

Reputation: 2173

I suggest using backbone.js. Its depending on jquery and underscore.js. It provides you the following features

  • MVC architecture
    • It gives more structure to the client side code
  • Templating
    • You can maintain templates in the client side which gives you a more organized code.
  • URL re writing
    • Re-write urls on ajax calls. It Helps to develop SEO friendly website.

Upvotes: 1

Related Questions