Good day. There is a working script, the url is changing, but I can’t understand how to dynamically change the title.
<script> $(function($){ $('#menu a').attr('onclick','return false;').click(function(){ var href = $(this).attr('href'); $('.conteiner').fadeOut(90); $('.conteiner').load(href+' .conteiner', function(){ history.pushState(null, null, href);$('.conteiner').fadeIn(600);return false; }); }); }); </script>
Accordingly, there is a div with menu items and a div with the class of the conteiner loadable part of the content. Tried both pushState and replaceState but something doesn’t work. :(