Cooking onions is something you’ll do a lot, so do it right. Keep the pan on a medium heat until your oil shimmers, then toss them in. Stir occasionally – you don’t need to throw them around like it’s a cooking show. Unless the recipe demands it, don’t let them start to brown. And remember: red onions are sweeter, so you can get away with cooking them less.