Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$(document).pjax(".item-link, .head-logo a", ".pjax-container", {fragment: ".pjax-container"});
$(".pjax-container").on("pjax:success", function(){
$.pjax({
url: window.location.href,
container: ".main-menu",
fragment: ".main-menu"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment