window.addEventListener('popstate', popstateEventListener);
$('#nav-btn-task, #main-page-footer-btn-task').on( "click", function() {
history.pushState(null, null, '/task');
// popstateEventListener();
});
let xhr = new XMLHttpRequest();
xhr.open('GET', location.origin+'/api?method=ping',false);
xhr.send();
xhr.responseText
{"header":{"status":200}}1