Heat the oil in a large deep skillet (or wok) over medium heat. Add onions, garlic, ginger, and chili; cook, stirring, for 6-7 minutes, until the onion has softened.
For a relaxing atmosphere in the kitchen I recommend my personal Elle Republic: Chilled Out Kitchen Tunes Playlist on Spotify.