Preheat a frying pan, pour in 2 tablespoons of vegetable oil and add 10 g of butter. Preheat and put the onion. On a sufficiently high heat, turning over, fry the onion until golden brown. Add sugar and salt and caramelize the onion. Fry for a couple more minutes. Turn off the heating.