Cache ajax request to minimize flashing