Sheldon Keefe said his Devils have found “the recipe” after their latest loss — and just in the nick of time, too!

The ingredients are rotting in the fridge. The dinner guests have all gone home. The china is collecting dust in the cabinet. The silver is tarnishing in the buffet. But it’s good to know that this team has found the formula for winning games, even if it is, you know, not actually doing that.

“I thought our guys deserved better tonight,” Keefe said, and it is quite possible that they did.

They limited the Islanders to seven shots through two periods before, predictably, giving up a back-breaking goal late in the third period in a 3-1 loss. That would have driven a lesser coach to throw his postgame meal against the locker room wall — last food reference, I swear — but not Keefe.

“It’s hard not to accept that the recipe is right there,” he said.

So the Devils head into the Olympic break with a gold medal for trying. Their season is over, dead, kaput. But they have tumbled so far that the search for even the thinnest ray of light in the darkness has begun.

Every now and then, they’ll give fans flashes of the team they once were — like during the second period on Thursday night, when Jesper Bratt found captain Nico Hischier with a perfect cross-ice pass for what Keefe called “one of my favorite goals of the season.”

He might have loved it so much because it was also the team’s first goal in more than seven full periods. The Devils entered a crucial three-game stretch against Ottawa, Columbus and the Islanders needing points to stay within spitting distance, and instead, they were outscored 10-2. They have now one or fewer goals in 25 of their 57 games this season.

It is hard to watch, and aside from that 10-minute mid-game stretch of competence on Thursday night, I found myself stuck on one question: Does anyone remember when the Devils were … fun?

This wasn’t all that long ago, I swear. Just a couple seasons ago, this team put on an electrifying show on most nights with an attacking, high-powered style that treated fans to an offensive show. This was a franchise on the rise that was loaded with young stars, and while they stalled against hardier opponents in the postseason, at least they were always interesting.

How did that team become this team?

This isn’t a perfect comparison, but lately, I’ve felt like I’ve been watching the Giants at the end their last few miserable seasons. The games are perfunctory. The atmosphere is blech. Instead of a Kiss Cam, the team could have a Yawn Cam. Maybe the Devils should trade for Tommy Cutlets.

To think: There still will be 25 games like this left when the NHL returns from the 23-day break, not that this matters. The Devils are 11 points out of a playoff position. The only team below them in the Eastern Conference standings are the hated Rangers, and they raised the white flag on the season weeks ago.

Changes are coming. At this point, firing general manager Tom Fitzgerald and head coach Sheldon Keefe before the end of the season won’t do much more than appease a bloodthirsty fan base, but a leadership reboot feels inevitable and necessary. What else can ownership do at this point, assuming ownership is paying attention?

But the last few weeks also have raised some serious questions about this team’s core.

Jack Hughes was on the ice for about 45 seconds before this game, receiving a lukewarm (at best) sendoff from fans before the Olympics. They’re no doubt frustrated that the team’s top center missed these crucial games with a lower-body injury but apparently will arrive in Milan ready to go for Team USA’s first game next week.

The Devils can’t count on Hughes to stay on the ice, and for that reason, they can’t count on him as their franchise player. Before the season, the idea that the team might trade Hughes would be absurd. Maybe it still is. But you’d probably listen to the offer.

Hischier, Bratt, Dawson Mercer — this team has too much talent to have the same minus-29 goal differential as the left-for-dead Rangers. Flawed roster construction is the biggest culprit, but the time is rapidly approaching when it is time to consider major changes to the team’s core. That, fans hope, will be a decision for a new GM.

For now, the Devils have to hope three weeks off for the Olympics will lead to a Miracle on Ice. “We’ve got to go on a hell of a run, basically, is what it comes down to,” goaltender Jake Allen said, but the veteran has been around long enough to understand that ain’t happening.

They may have found the recipe, as Keefe insisted. But everyone starved while waiting at the kitchen table a long time ago.