SANTA CLARA >> Jimmy Garoppolo was smiling again Sunday night and this time nobody had a problem with it.

Remember Sept. 25? The 49ers lost to the Denver Broncos 11-10 on Sunday Night Football and cameras rolled as Jimmy G flashed his pearly whites while greeting an ex-teammate on the field. Some people reacted as if he were cracking jokes at a funeral service. Losing means a long face and a somber look.

The criticism was ridiculous at the time. Garoppolo had just completed his first full week of practice after taking over for the injured Trey Lance. It was only Week 3 of a 49ers season that wasn’t supposed to include him at all.

The criticism is ludicrous now. Garoppolo just happens to be playing his best football since arriving by trade from the New England Patriots in 2017.

We’ll never know what Lance was going to bring to the table before fracturing his ankle, although early indications were he was going to have his ups and downs. Regardless, it’s becoming more clear by the week that the 49ers saved their season when they coaxed Garoppolo to take a reduced salary to be a backup.

The latest example was Sunday night’s 22-16 win over the Los Angeles Chargers. It improved the 49ers’ record to 5-4, a half-game behind Seattle in the division.

Statistically, Garoppolo didn’t jump off the page. He seldom does. Garoppolo completed 19 of 28 passes for 240 yards with no touchdowns and no interceptions. He has passed for 1,931 yards with 11 touchdowns and four interceptions with a passer rating of 100.0. All well and good.

Yet you could make a case for Garoppolo being the best quarterback in the NFC West and he is playing on par or better than anyone else in the conference outside of Philadelphia’s Jalen Hurts.

A lot of what happened against the Chargers was because of the 49ers’ running game — 41 carries for 157 yards. But when trailing 13-3 in the first half, it was Garoppolo’s passing that got the 49ers into gear.

With 5:33 left in the half and the 49ers down by 10, the 49ers faced a third-and-12 at their own 23. Give the ball back to Justin Herbert and the Chargers and you just might find yourself down 20-3 at halftime.

Instead, Garoppolo dropped back and threw a 21-yard strike to George Kittle for a first down.

On the next snap, Garoppolo did something else he has been doing with increasing regularity: turning a broken play into a big play. Garoppolo rolled right, spotted Ray-Ray McCloud on the right sideline and threw a perfect 33-yard pass to the Chargers’ 23.

Completions of 6 and 12 yards to Christian McCaffrey followed, helping to set up Garoppolo’s 1-yard sneak for the touchdown, putting the 49ers within 13-10.

(It’s worth noting when asked in postgame interviews about the Kittle and McCloud plays, Garoppolo took credit for nothing although both passes were perfectly placed and helped change the game. That has always been a Garoppolo strength, one that has bred fierce loyalty from his teammates.)

In the fourth quarter, with the 49ers facing a second-and-20, Garoppolo hit Jauan Jennings for 12 yards and then 10 more for the first down on third-and-8.

He later hit Brandon Aiyuk for 24 yards to the 2 on third-and-10 to set up their second touchdown, and Aiyuk for 11 yards on a third-and-9 for a first down to take more time off the clock. Of the 49ers’ 10 passing first downs, four came on third-and-8 or longer.

The pass to McCloud, as well as the third-and-8 to Jennings, came on passes outside the boundary. It’s an area where Garoppolo has been vulnerable in the past.

While Garoppolo is expanding his horizons in terms of making something out of nothing and throwing the ball to the sideline, his temperament remains the same. He’s the perfect conductor for an orchestra of playmakers that includes McCaffrey, Kittle, Aiyuk, Deebo Samuel, Elijah Mitchell and Jennings.

When it was suggested that the 49ers with all these playmakers should have scored a lot more points, Garoppolo shrugged. The Chargers came into the game with a 5-3 record forged by staying close and winning at the end. They were beaten at their own game by the 49ers.

“That’s the style of defense these guys play, making you take the 10- or 15-play drives like we did (Sunday),” Garoppolo said. “It’s not going to be flashy, but a ‘W’ is a ‘W’ and I hope the fans are happy with that.”

If what Garoppolo is doing isn’t enough to make the fans and critics smile, consider where the 49ers would be without him.