Heat the oven to 500°F with a rack at the lowest level.
Put the oil into a 14-×-18-×-2-inch or slightly smaller roasting pan. Swirl the oil so it coats the bottom of the pan. Put in the onions and shake so that they are coated. Roast for 10 minutes. Shake to turn over. Move the onions to the ce