dom method callbacks should be async.