after clicking, ask the web client to wait 1 second for javascript executions to finish, then report how many are still running if timeout is reached.