Cook pasta according to package directions, drain and set aside.
Meanwhile in a pan heat the oil, add the sliced onion and saute stirring frequently till it is golden brown. (mine was way overcooked :(
Remove from the oil and spread out on kitchen paper. Reserve 2 - 3 tablespoons of the oil.