"But I also have to praise (keeper) Danny Ward, because he made some fine saves to keep us in it during a tough period for us."
Town's fourth win in five league games this season was seen by 19,972 and Wagner added: "The crowd were superb, especially in the final 15 minutes, when they really helped us regain control.
WATCH: Huddersfield Town's players arrive ahead of the clash at home to Wolves
"There are different ways to win games, and this was a different win to the others we have had, but of course I will take every victory I can."
Town, who remain two points clear at the top of the table, are planning a behind-closed doors game at Liverpool during the international break.
Their next Championship game is the big derby at Leeds United on Saturday, September 10.