Asynchronous switch functions (Make sure the DOM is parsed after switching) (#79)

* Make sure the DOM is parsed after switching

* Fix reload-link in the example
This commit was merged in pull request #79.
This commit is contained in:
Oskar
2017-12-19 13:58:22 +01:00
committed by Maxime Thirouin
parent 1e40a0d70b
commit be5d58d550
4 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
<div class='body'>
<h1>Index</h1>
Hello.
Go to <a href='page2.html'>Page 2</a> and view your console to see Pjax events.
Go to <a href='page2.html' class="js-Pjax">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>