Joe Wardle scored twice as Huddersfield recovered from a 12-0 deficit to overpower injury-hit Wigan 31-22 at the John Smith's Stadium.
Aaron Murphy, Shaun Lunt and Jermaine McGillvary also touched down as the Giants responded to some harsh words from coach Paul Anderson to get back on track in the First Utility Super League.
Wigan had started well with tries from fit-again captain Sean O'Loughlin and Matt Bowen but a burst of 25 unanswered points from Huddersfield turned the game.
Wigan did claim further tries through Dominic Manfredi and, late on, Joe Burgess but the match was probably one too many for their youth-filled side.
Much may have been made of the Warriors youngsters since last week's impressive win over Salford, and nine frontline players were still missing for Shaun Wane's side.
But it was the two returning senior men who helped the visitors start well as inspirational skipper O'Loughlin and full-back Bowen touched down.
O'Loughlin, making just his sixth appearance of the year, opened the scoring when he took a smart offload from teenager Manfredi and went over.
Bowen added a second when he weaved his way through some weak tackling and with Matty Smith converting both tries, Wigan were looking strong after 20 minutes.
Until this point there had been little sign of the reaction Anderson had demanded from last season's League Leaders' Shield winners after their capitulation against St Helens a week ago.
That began to change in the 23rd minute as playmaker Danny Brough picked out Murphy with a long pass and the winger finished out wide.
The Giants stepped up the momentum and Larne Patrick had an effort ruled out before a penalty close to the line created more pressure and Lunt crashed over.
Brough then instigated a pulsating passage of play by releasing Wardle, who was hauled down by Manfredi.
Brett Ferres picked up possession only to be denied by Burgess, but there was no denying Wardle a second time as he dived over from close range.
The crowd sensed another when Murphy broke into Wigan territory from deep inside his own half but the winger checked his run as Burgess tracked back and the pair clashed heads.
Burgess recovered but Murphy was unable to continue.
Wigan looked to hit back early in the second half but the video referee ruled out a Burgess try for a knock-on.
Huddersfield's attack was starting to click and Ferres released Wardle to score his second try with a superb one-handed pass on halfway.
Brough added to his four earlier goals by landing a one-pointer but Wigan were not beaten and responded as Manfredi claimed a Smith kick to reduce the arrears to 25-16.
Wigan were threatening again when Burgess found space on the left but he opted to kick as he was closed down and failed to connect with the ball.
McGillvary swooped to seize possession and race away down the touchline for the try that put the game beyond Wigan's reach, with Brough adding a fifth conversion.
Burgess did cross in the dying moments but it came too late to affect the outcome.