If you really want you can build a very fast site if you only download the part of the html that change between loads and still not break the back button. This is more work though.
This is a hack to accelerate heavy websites. If your site is lightweight you might not need it. Or you can load such JS code later in an unobstructive fashion.