Abort previous pending XHR when navigating

This commit is contained in:
Robin North
2018-01-23 15:09:57 +00:00
parent 6000ad5620
commit 486ef0e0ba
8 changed files with 89 additions and 6 deletions

15
example/page3.html Normal file
View File

@@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<title>Hello</title>
<script src='../pjax.js'></script>
<script src='example.js'></script>
</head>
<body>
<div class='body'>
<h1>Page 3</h1>
Hello. Go to <a href='index.html' class="js-Pjax">Index</a>.
</div>
</body>
</html>