Async loading with strange behavior