The New York Yankees wasted no time breaking the major league record for consecutive games with a home run.

DJ LeMahieu's leadoff homer off Toronto's Clayton Richard in the bottom of the first inning of Tuesday night's game in New York gave them home runs in 28 straight games, breaking the record set by the 2002 Texas Rangers.

"I've heard the players comment on it, and they're very aware of it," Yankees manager Aaron Boone said after the game. "It's impressive to me. It's a tribute to having a lot of really good hitters and guys that could hit for power."

During this streak, 14 Yankees have combined to hit 51 home runs. Aaron Judge got his first of the streak right after LeMahieu. It was the first home run since April 20 for Judge, who returned Friday from an oblique injury that sidelined him for two months.

"I was just trying to do what he did. He's been our MVP,'' Judge said of LeMahieu. "DJ stole the show. We're happy for him. No better person I want breaking that record.

"We've got something special."

Gleyber Torres and newly acquired slugger Edwin Encarnacion each chipped in with a home run to help the Yankees defeat the Blue Jays 4-3.

The most recent game in which the Yankees failed to hit a home run was May 25 against the Kansas City Royals.

Last season, the Yankees set the major league record for home runs in a single season, with 267.

The Associated Press contributed to this report.