Spray a pot generously with nonstick cooking spray (or with a teaspoon of the oil of your choice), set it over medium heat and allow it to get hot before adding onions and sauteeing until softened (about 2 minutes). Add garlic and sautee another minute or so.