@@ -19,8 +19,8 @@ document.addEventListener("pjax:success", function() {
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var pjax = new Pjax({
|
||||
selectors: [".body"]
|
||||
selectors: [".body"],
|
||||
// currentUrlFullReload: true,
|
||||
})
|
||||
console.log("Pjax initialized.", pjax)
|
||||
})
|
||||
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
<body>
|
||||
<div class='body'>
|
||||
<h1>Index</h1>
|
||||
hello. Go to <a href='page2.html'>Page 2</a> and view your console to see Pjax events.
|
||||
Hello.
|
||||
Go to <a href='page2.html'>Page 2</a> and view your console to see Pjax events.
|
||||
Clicking on <a href='index.html'>this page</a> will just reload the page entierly.
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user