function ajaxUrl(href){
$(document).scrollTop('0');
$('body').css('overflow','hidden');
$.post(
href,
{'ajaxes_loaders' : null},
function (data){
$('body').css('overflow','auto');
$('body').html(data);
var titl = $('div[title]').text();
document.title = titl;
}
);
}
if (history.pushState){
$(window).on('popstate', function(event){
var loc = ( event && event.location ) || ( event.originalEvent && event.originalEvent.location ) || document.location;
ajaxUrl(loc.href);
});
$(document).on('click', 'a[load != "none"]', function(e){
var href = $(this).attr('href');
if (href != null){
ajaxUrl(href);
history.pushState(href, titl, href);
var titl = $('div[title]').text();
e.preventDefault();
}
});
}
Пример гет запроса: