Substitute Alan Lee scored a late winner as Huddersfield extended their unbeaten run to six matches with victory over Oldham.
The home side went close in the first half but Jordan Rhodes headed wide and was unable to add to his tally of 12 goals in the last five matches.
Defender Jean Yves Mvoto had Oldham's best chance but slipped when left unmarked in the area after a corner.
Danny Cadamarteri's cross set up Lee for the winner with four minutes left.
VIEWS FROM THE DRESSING ROOM
Oldham Athletic manager Paul Dickov told BBC Radio Manchester:
"We're all a bit flat because I don't think the result reflects on the performance.
"It's a tough place to come but we felt we could have got something and I think they showed that in there performance.
"We looked a threat going forward but once we got in the last third we just didn't seem to have that belief we could score a goal."