show the loading spinner as soon as we post

Sometimes the server would take a long time to respond, so show the loader right away.
use pushstate
Be sure that the timeout is cleared after loading a new site
update main.min.js to reflect recent changes