OLD | NEW |
1 <!-- Redirects to a slowly loading page, and then updates its history state | 1 <!-- Redirects to a slowly loading page, and then updates its history state |
2 before the new load commits. --> | 2 before the new load commits. --> |
3 <script> | 3 <script src="e.js"></script> |
4 function updateHistory() { | |
5 history.pushState({}, "", "empty.html"); | |
6 } | |
7 | |
8 function navigate() { | |
9 location.href = | |
10 "http://127.0.0.1:" + location.search.substr(1) + "/test2"; | |
11 } | |
12 </script> | |
13 <body onload="setTimeout(navigate, 0)"></body> | |
OLD | NEW |