Sets a timer on page load and displays loading message if exceeded.