There was a near whiteout in the first half. But once the snow let up, LeSean McCoy and the Eagles offense got going, overcoming a 14-0 deficit late in the third quarter to beat the Detroit Lions 34-20.

McCoy set a team record with 217 yards rushing, 166 in the second half, as the Eagles’ offense, dormant in the first half, scored 34 points over the final 19:05 of the game. McCoy broke Steve Van Buren’s record of 205 yards set in 1949.

The Eagles won their fifth straight, improved to 8-5 and will take over first place in the NFC East if the Dallas Cowboys lose Monday night to the Chicago Bears. The Lions fell to 7-6.

But it hardly seemed like the Eagles would mount any kind of offense in a game that started with heavy snow that enveloped the field in a giant gray cloud, making visibility nearly impossible. At least three inches fell during the first quarter, when stadium workers would come out after each stoppage to shovel or blow off snow at 5-yard intervals.

The Lions, meanwhile, took advantage of Nick Foles’ first interception of the season, starting that drive at the Eagles’ 20, then a Jeremy Ross 58-yard punt return for a touchdown for a 14-0 lead. Ross later added a 98-yard kickoff return for a touchdown.

Foles’ interception left him one TD pass off Peyton Manning’s record, set this season, of 20 touchdown passes before throwing his first interception. But it was hardly Foles’ fault. The conditions were awful and receivers had trouble holding their footing, and Foles no doubt had trouble gripping the ball.

But Foles was much better in the second half. He finished 11-for-22 passing for 179 yards to go along with a touchdown and an interception. He was 4-for-10 for 35 yards in the first half, when the weather was at its worst.

It was clear from the start that the weather would have a major impact on both offenses. On the second play, the Eagles tried an end-around to DeSean Jackson that lost 10 yards. On the next series, McCoy lost five yards.