Egyptian scores penalty
Only a minute had passed when Crooks tapped home from a cross before 15 minutes later when Loftus converted another close-range effort.
The Egyptian won and then converted the penalty on the hour mark to make it 2-1 after the Terriers had raced into a first-half, two-goal lead.
Barnsley striker Mido marked his return from injury by scoring a penalty for Dave Flitcroft's development side against Huddersfield Town. The away side bullied Barnsley in the first quarter but soon the slick, flowing football ensued for the Barnsley youngsters who squandered several good chances.
Subs not used: Mackey, Maris.
Reds: Lidakevicius, Patterson, Steade, Scott, Kilburn, Abbott (McKnight 80), Shillito (Alderson 22), Clark, Mido (Sousa 69), Noble-Lazarus, Oates.
The damage had already been done, however, and the Terriers held on to their lead despite chasing shadows for the majority of the second period.
But soon the hosts were back in the ascendancy as Oates showed phenomenal strength to barge his way into the box and force Allison into a low save to his left.
Two minutes after Mido's penalty handed the Tykes a lifeline, Lidakevicius pulled off a remarkable save to tip Leonard's 30-yarder onto the post away to his left.
Steade, Noble-Lazarus and Clark all had great chances, with the latter forcing Town's 'keeper Allison into a splendid save five minutes before the break with a long-range drive.