I'm using " history.pushState " to change url when the user click on a category in my page. If is not selected any category, my title and meta description are those set in the beginning when the page is loaded:
<head>
<title>my default title</title>
<meta id="mdescription" name="description" content="my default description" />
…
</head>
When the user select a category, new content is showed through ajax, url changes using history.pushState and I change title and meta description in this way:
$('title').html(mynewtitle);
$('#mdescription').attr(mynewmdescription);
All this is working, my only doubt is about the robots. I'm wondering if they will just get " my default title " for each url they detect or if they will also be able to get the new title and description. So is this just something "nice" for the user (who will see to change the title of the page anytime he selects a category) or it can be also useful for search engines?