Peel and halve the onions from root to stem, then slice into 1/4-inch half-moons.
Heat a large skillet over medium heat and add butter or oil.
Add the sliced onions and salt, stirring to coat in the fat.
Reduce heat to medium-low and cook for 30-45 minutes, stirring every 5 minutes, until onions are deep golden brown and jammy.
If onions begin to stick, add a tablespoon of water to deglaze the pan.
Optional: add balsamic vinegar in the last 2 minutes of cooking and stir to combine.
Serve immediately or cool and store in an airtight container for up to 1 week in the refrigerator.