add timeout on load event