Wolfgang Puck prefers to brown some diced onions in a pan before adding in the eggs. Making sure that the onions aren’t fully cooked before the eggs are added will ensure that they don’t go mushy.
https://www.youtube.com/watch?v=OfjCnR-FlOw