BOSTON – This had all of the makings of the kind of hockey game that Bruins head coach Claude Julien absolutely despises.

The Bruins had lax defense throughout the game that allowed quality scoring chances for the San Jose Sharks. They had bad discipline in the second period that led to four penalties and a pair of PP goals for the Sharks. Worst of all the effort level and commitment was inconsistent at best, and certainly not there like it needed to be in a 5-4 loss to the Sharks at TD Garden on Tuesday night.

The mistakes that are being repeated and the inability to piece together consistently good efforts were apparent throughout the game, and led Julien to a frustrated place after it was all over. The Bruins are 2-6-1 on home ice and have allowed five or more goals in five different instances already on home ice in mid-November.

Julien knows that kind of careless play needs to stop now, or the Bruins won’t be playing for much when it really matters. The cappers were the two PP goals allowed to the Sharks in a 25 second span in the second period, and the mind-numbing too many men on the ice penalty called while they were already on the PK in the same second period.

The Bruins simply never recovered from allowing three unanswered goals to the Sharks in the second period when they took command of the game.

“I think we all know this isn’t good enough,” said a perplexed Claude Julien. “We all know that we need to be better. I think we have to take the responsibility of having to be better. There’s no excuse for tonight. We didn’t play well enough, and you can’t come out in the third and decide to play a little bit better.

“This playing once-in-a-while in games is just not going to cut it in this league. We have to deal with certain things that I plan on dealing with internally, but I’m certainly not going to start elaborating here. I think there are a lot of things that have to be better with our hockey club moving forward. In this league and with the team that we have, the record that we have is just not good enough. It needs to be better.”

The Bruins did close to within one goal in the third period and a coach’s challenge probably should have wiped out one of the San Jose goals when it appeared that Joe Thornton’s stick impeded Tuukka Rask from making a save. But Julien knew that none of those things really mattered, and instead the alarming mistakes and careless play from his hockey team aren’t good enough for wins right now.

That’s a major problem for a Bruins team that’s two points out of a playoff spot, and completely wasted one of their games in hand with a spotty Tuesday night effort against the Sharks in defeat.