Waits for script loading before triggering timeouts