Optimize the performance of the domain selector dropdown
When the user has access to many domains (e.g, >=100), the domain selector dropdown shown in the top right corner breaks and has reduced performance since it tries to show all domains at once. Search is also sometimes encountering issues when dealing with so many domains.
It would be preferable if the fetching and searching of the domains could be done asynchronously to optimize the performance.