Adding garlic after ginger allows the ginger's flavor to infuse the oil without burning, resulting in a more balanced and nuanced aromatic base. Adding garlic first can lead to it burning before the ginger has properly released its flavor.
The order in which you add ginger and garlic to hot oil significantly impacts the final flavor profile of your dish. Ginger, with its higher moisture content, generally takes longer to release its aromatic compounds. If you add garlic first, it tends to brown and even burn quickly, especially if the heat is too high. Burnt garlic imparts a bitter and acrid taste, overpowering the more subtle notes of the ginger.
By adding ginger first, you allow it to gently infuse the oil with its warm, slightly spicy flavor. Once the ginger has had a chance to bloom (usually a minute or two), you can then add the garlic. This staggered approach ensures that the garlic cooks to a golden-brown color without burning, contributing its pungent and savory notes to the aromatic base. The result is a more complex and balanced flavor profile, where both ginger and garlic contribute their distinct characteristics without one overpowering the other.
Finely mince or grate both the ginger and garlic to maximize their surface area and allow for quicker and more even flavor release. This also helps prevent large pieces from burning before the smaller ones are cooked.