Match ends, Ipswich Town 2, Leeds United 1.
Brett Pitman's injury-time winner snatched victory for Ipswich as they moved up to fifth with a triumph at home to Leeds.
The hosts trailed after just 12 seconds of the match as Souleymane Doukara stroked home after stealing possession.
Leeds kept Ipswich at bay until the break, but Luke Chambers met Ryan Fraser's cross to head an equaliser.
Fraser again supplied the assist for the winner with an inch-perfect centre for Pitman to nod in.
Doukara's goal - the fastest in the Football League this season - caught Ipswich's official Twitter account out, as it admitted it "had no idea what happened".
It could have been even better for the visitors shortly after when Mustapha Carayol's low cross was almost deflected past Dean Gerken for a second.
But it was Gerken's Leeds counterpart Marco Silvestri who was by far the busier of the two goalkeepers, and it was only Ipswich's wastefulness that kept the scoreline level into injury time.
Cole Skuse and Freddie Sears both went agonisingly close, before Pitman buried his 92nd-minute header to spark wild celebrations.
Ipswich boss Mick McCarthy: "It was a bonkers start but a magnificent end. It was a really good game and I thought we thoroughly deserved to win.
"Leeds obviously started well and they were the better team for the first 15 minutes, but after that we were different class and created enough chances to win two matches."
Leeds boss Steve Evans: "I can't fault the efforts of my players, though the referee will be getting a low mark - I thought he was absolute garbage.
"I don't think Ipswich deserved the win. In spells, they were disjointed and just as bad as we were.
"It demonstrated to me that we need to bring some more quality into the football club and we are trying to do that."
- 4ChambersBooked at 81mins
- 17BruSubstituted forHyamat 84'minutes
- 22DouglasBooked at 58mins
- 9MurphySubstituted forPitmanat 78'minutes
- 23L CookSubstituted forAntenucciat 79'minutes
- 10MowattSubstituted forPhillipsat 60'minutesBooked at 83mins
- 18CarayolSubstituted forDallasat 64'minutes
- Fred Graham
- Shots on Target
Second Half ends, Ipswich Town 2, Leeds United 1.
Attempt missed. Giuseppe Bellusci (Leeds United) header from the left side of the six yard box misses to the left. Assisted by Scott Wootton with a cross.
Tommy Smith (Ipswich Town) wins a free kick in the defensive half.
Foul by Mirco Antenucci (Leeds United).
Goal! Ipswich Town 2, Leeds United 1. Brett Pitman (Ipswich Town) header from the centre of the box to the centre of the goal. Assisted by Ryan Fraser with a cross.
Offside, Leeds United. Kalvin Phillips tries a through ball, but Charlie Taylor is caught offside.
Corner, Leeds United. Conceded by Tommy Smith.
Foul by Tommy Smith (Ipswich Town).
Mirco Antenucci (Leeds United) wins a free kick in the attacking half.
Substitution, Ipswich Town. Luke Hyam replaces Kevin Bru.
Kalvin Phillips (Leeds United) is shown the yellow card.
Offside, Leeds United. Liam Cooper tries a through ball, but Souleymane Doukara is caught offside.
Offside, Ipswich Town. Brett Pitman tries a through ball, but Freddie Sears is caught offside.
Offside, Leeds United. Stuart Dallas tries a through ball, but Mirco Antenucci is caught offside.
Luke Chambers (Ipswich Town) is shown the yellow card for dangerous play.
Dangerous play by Luke Chambers (Ipswich Town).
Marco Silvestri (Leeds United) wins a free kick in the defensive half.
Corner, Ipswich Town. Conceded by Giuseppe Bellusci.
Substitution, Leeds United. Mirco Antenucci replaces Lewis Cook.