Claude Puel must have been bracing himself for a frosty reception. With the minutes ticking away, Leicester looked out of ideas. Damned by their lack of invention, they were on their way to a fifth defeat in seven league games. Yet Wilfried Ndidi rescued them with a fortunate goal in the 89th minute and West Ham, who lost Mark Noble to a red card in the first half, had to settle for a point after snatching the lead through Fabián Balbuena.

A year on from Puel’s appointment as Leicester’s manager, the theory goes that the Frenchman is not going to make it as far as his second anniversary. He has struggled to dispel concerns that his tactics are too negative and although his team made a promising start against their vulnerable guests, they were blighted by carelessness at both ends of the pitch during the first half.

The pressure on Puel to inspire a dynamic display was immense, especially with Jamie Vardy sitting behind him in the home dugout, and Leicester certainly looked up to the task during the opening 10 minutes. The onus was on them to seize the initiative against opponents whose resources were stretched by the absence of nine senior players and how Puel must have been praying for the linesman’s flag to stay down when Kelechi Iheanacho converted Marc Albrighton’s cross in the second minute. It would have been a welcome boost after his surprising decision to pick Iheanacho instead of Vardy, but the Nigerian striker had strayed a yard offside and West Ham breathed a huge sigh of relief.

Leicester were rampant for a while. Albrighton skimmed a shot wide from 18 yards and the sense grew that West Ham were there for the taking without the unwell Marko Arnautovic, who was replaced up front by Javier Hernández. West Ham looked like an accident waiting to happen at the back at times, not least when Balbuena almost headed Albrighton’s cross into his own net.

Lukasz Fabianski leaped to claw the defender’s botched clearance over the bar, however, and West Ham started to find their feet as Leicester’s early intensity faded. Felipe Anderson tested Kasper Schmeichel from the edge of the area and Robert Snodgrass saw a low effort dribble past the left post.

Leicester had become increasingly nervous and they fell behind to a sloppy goal midway through the first half. Anderson chipped a free-kick to the far post from the right and when Declan Rice rose above Caglar Soyuncu to head the ball into the middle, Harry Maguire failed to spot that Balbuena had peeled away from him. The Paraguayan’s first effort came back off the post but there was still no reaction from anyone in blue and Balbuena had the easy task of scoring his first West Ham goal.

West Ham could argue that they were entitled to be ahead. They had taken control of midfield, where Rice was keeping a close watch on the dangerous James Maddison, and they were threatening on both flanks. Grady Diangana, a replacement for the injured Andriy Yarmolenko on the right, did not look overawed on his first start. The 20-year-old winger looked determined to justify a brave call from Pellegrini.

Just when West Ham were starting to feel comfortable, however, the mood changed after a moment of madness from one of their most experienced players. There was no need for Noble to lunge into a challenge with Wilfried Ndidi after taking a heavy touch near the halfway line. West Ham’s captain should have known better than to go to ground and Pellegrini, holding his head in his hands, looked like he knew what was coming even before Michael Oliver, the referee, marched over to show Noble a straight red card.

One poor decision had threatened to undermine West Ham’s good work and Leicester pressed for an equaliser before the interval, only for Fabianski to make a stunning save from Vicente Iborra’s header. The pattern was set – attack versus defence – and the home fans voiced their approval at Puel’s decision to replace the disappointing Rachid Ghezzal with Vardy at half-time.Pinning West Ham back, Leicester focused their energy on breaking down the claret and blue wall.

An equaliser felt inevitable. Albrighton tested Fabianski’s reflexes after slack defending from Arthur Masuaku, Maguire saw his looping header clip the top of the bar and Vardy wasted a wonderful opportunity, nodding over from six yards after losing Issa Diop.

West Ham thought they had escaped when Fabianski beat Vardy’s shot away. Moments later, however, Ndidi’s deflected shot spared Leicester’s blushes. But the evening ended on a low note when an ambulance had to take Daniel Amartey to hospital with a suspected broken leg.