let's say there are two routes A and B in the same HTML file H .
and there are some time-consuming ajax in H
if I route from A to B page.redirect('/B'), that's ok.
but when I run history.back()
it can't back to A
I found that onpopstate worked when window.onload
I think DOMContentLoaded is already ok.
Coverage remained the same at 89.209% when pulling fe955289e2a3684b2f73fcef7ffed8dcd3f62084 on p2227:master into 1034c8cbed600ea7da378a73716c885227c03270 on visionmedia:master.
let's say there are two routes A and B in the same HTML file H . and there are some time-consuming ajax in H if I route from A to B
page.redirect('/B')
, that's ok. but when I runhistory.back()
it can't back to A
I found that onpopstate worked when
window.onload
I thinkDOMContentLoaded
is already ok.