make sure "warm up" of web view only happened in main thread.