May is the best month to visit Yosemite, as well as June. As the water sources for the lakes and waterfalls come from snowmelt, May will be warm enough to bring about the melt and fill up all the waterfalls. As you get farther into summer, things start to dry up (such as Mirror Lake, which is typically dry by July)