Preheat the oven to 350°F (175°C). Grease a 9×13-inch baking dish with a little of the oil.
Warm the remaining oil in a large skillet over medium heat. Add the onion and cook, stirring, until tender and translucent without browning, 6–8 minutes. Set aside to cool slightly.
Scrape the batter into the prepared dish and smooth the top. Bake until the top is lightly golden and the center is set with just a slight jiggle, 45–55 minutes; a toothpick near the center should come out with moist crumbs, not wet batter.
Cool 10–15 minutes before cutting. Serve warm or at room temperature.