Slice the Onions: Begin by thinly slicing two medium-sized yellow onions. The thinner the slices, the quicker they will cook.
Cook the Onions: Heat a large skillet over medium heat and add a tablespoon of butter. Once the butter is melted, add the sliced onions. Cook the onions slowly, stirring occasionally to prevent them from sticking to the pan. As the onions cook, they will release their natural sugars, which will start to caramelize and turn the onions a deep brown color.
Deglaze the Pan: If the onions begin to stick or brown too quickly, add a splash of water or apple cider vinegar to deglaze the pan. This will loosen any browned bits from the bottom of the pan and add more flavor to the onions.
Season: Once the onions are fully caramelized, season them with a pinch of salt and pepper to taste. You can also add a sprinkle of sugar to enhance the sweetness of the onions, or a dash of balsamic vinegar for a tangy kick.
Set Aside: Remove the onions from the skillet and set them aside. They can be kept warm in a low oven or covered to retain their heat until you’re ready to assemble the sandwiches.