visionmedia / page.js

Micro client-side router inspired by the Express router
http://visionmedia.github.com/page.js
7.68k stars 688 forks source link

mark loaded true when DOMContentLoaded #419

Closed p2227 closed 6 years ago

p2227 commented 7 years ago

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.

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 89.209% when pulling fe955289e2a3684b2f73fcef7ffed8dcd3f62084 on p2227:master into 1034c8cbed600ea7da378a73716c885227c03270 on visionmedia:master.

matthewp commented 6 years ago

Can you add a test?

matthewp commented 6 years ago

Going to close for now, will reopen if a test can be included. Thanks!