Do hash detection on page load.