Slice or chop the onions evenly
Heat a pan over medium to medium-low heat
Add oil or butter
Add the onions
Stir to coat
Cook slowly, stirring occasionally
Lower the heat if they start to burn
Continue cooking until they turn golden brown
Add a pinch of salt if desired
Remove from heat when evenly browned
