Chelsea warmed up for their Champions League clash against Barcelona with a 1-0 victory over West Ham courtesy of Salomon Kalou's winner and Petr Cech's penalty save.
Kalou struck in the 55th minute at Upton Park but it needed Cech to save Mark Noble's penalty to keep them ahead and send them into European action in high spirits.
The celebrations for Kalou's goal were marred by objects being thrown in the direction of Frank Lampard and John Terry, although that is hardly likely to affect a Chelsea team that are focused on ending their season with silverware.
They started the weekend six points behind Barclays Premier League leaders Manchester United and Guus Hiddink, in charge until the end of the season, has given up hope on catching them.
With that in mind, this match served to tee-up their clash at the Nou Camp on Tuesday, with Didier Drogba, Michael Essien and Michael Ballack on the bench.
Ashley Cole was also among the substitutes and, as he was suspended for the Barca clash, Jose Bosingwa was given a dry run in the position ahead of facing Lionel Messi. Luis Boa Morte was his sparring partner three days before the heavyweight clash in Spain.
There were reunions in the dug-out and on the pitch, with Hammers manager Gianfranco Zola and assistant Steve Clarke facing their former club.
Both were poised to announce long-term deals at West Ham following a successful first season together, with West Ham still in the hunt for a place in the Europa League despite this defeat.
For the visitors, midfielder Lampard was given his usual hostile welcome from West Ham fans who are still bitter after he left them in 2001, while Terry was not spared either.
England's captain spent five years at the Hammers' academy before joining Chelsea as a 14-year-old, and there were poisonous chants from the home fans towards the centre-back.
It was Lampard who created the first chance, in the 16th minute, when he slid the ball through to Florent Malouda - but the Frenchman dragged his shot wide after racing through.
Kieron Dyer, making his first start since August 2007, should have given the hosts a lead shortly after but he shot tamely at Cech after Diego Tristan had split the Chelsea defence.
Lampard, with jeers ringing in his ears, had a few sighters on Robert Green's goal. One volley flashed wide, a second went straight at the West Ham goalkeeper and Noble bravely blocked another.
Chelsea were applying pressure but almost fell behind just before the break. John Mikel Obi was needed to clear off the line when Tristan prodded towards goal after Noble's corner was nodded down by Matthew Upson and Cech was out of position.
After that scare, the visitors were ahead 10 minutes after the restart.
Lampard wriggled to the byline down the left and floated a cross to the far post, where Kalou took one touch before planting his finish into the empty net for his ninth of the season.
Lampard and Terry celebrated in front of the Bobby Moore Stand and missiles were thrown towards them from the crowd, an incident the Football Association could now look at.
Bosingwa was given a breather just before the hour mark, with Cole coming on at left-back, while Zola's response to falling behind was replacing Dyer and David di Michele with Freddie Sears and Radoslav Kovac.
Nicolas Anelka should have doubled the lead when Juliano Belletti sent him through after Upson slipped, with Green rushing out to block the finish. Cole then shaved the crossbar after exchanging passes with Malouda.
The Hammers were given their penalty 20 minutes from full-time when Herita Illunga's shirt was pulled by Kalou.
Noble's penalty was struck well but Cech leapt to his left and tipped away the effort.
Chelsea boss Guus Hiddink admitted he could not contemplate resting Frank Lampard for the clash against West Ham, and the England midfielder rewarded him by inspiring victory at Upton Park.
Lampard was abused by the fans he left in 2001 and missiles were aimed at him after Salomon Kalou's winner, but he had the last laugh as Chelsea warmed up for Tuesday's clash against Barcelona with a win over Gianfranco Zola's men.
"I have rested some players but if I had suggested that to Frank, well, I didn't even talk to him about it,'' Hiddink said. "He would have looked at me as if to say, 'Why are you doing that?' These guys with big personalities, they want to play every game. Maybe some time in the near future I will have to tell him he's not going to play, but without looking at him I think.''
Zola sympathised with his former team-mate.
"It's a long story,'' Zola said. "They didn't forgive him for leaving. Frank is a very good professional, a very good boy and it makes me sorry to think he has a problem with this crowd.''
Lampard set up the 55th-minute winner with a floated cross. It then needed Petr
Cech to save Mark Noble's penalty to keep Chelsea ahead.
"It's not a confidence boost for him (Cech),'' Hiddink added. "He showed against Everton this week, he made some good saves there too. We don't deny that he had difficult times before but when a goalie makes decisive saves then it's good for him.''
Hiddink has vowed to take the game to Barcelona when they play in midweek.
"It's not chess,'' he said. "With that, you have systems to attack or defend. Football is more complicated than that. We should not go there and drop back, wait and wait until the storm is
coming. We must take what is in our team and do some harm as well. That is always our
intention in big games. If we wait, we will have problems.''
Zola, meanwhile, was pleased to have Kieron Dyer back for his first start since August 2007.
Dyer was played as a defensive midfielder but had West Ham's best chance of the
first half, Cech saving when he raced through.
"He applied himself well and had to work harder than normal. It's another step forward for him,'' said Zola, who signed a new contract until 2013 after the game. He had a great chance. It was a great ball to him. It went to his left which is not his best foot but Petr Cech made a good save.''