onions are almost always cooked in some kind of fat, although they can be softened in a small amount of liquid. usually this fat is a neutral oil such as grapeseed, but can also be olive oil, butter/ghee, or bacon fat.