ADD yellow onions to skillet and sweat in bacon fat over medium heat until translucent, about 5 to 7 minutes. Add the sugar and a pinch of salt and continue cooking for 10 minutes. Add sherry vinegar and bacon back to pan and continue cooking for roughly 90 minutes, or until liquid has reduced and mixture has caramelized and thickened. Adjust seasoning with salt and pepper as needed.