SAN JOSE – The San Jose Earthquakes allowed a goal to Sam Sarver in the 93rd minute in a wild 3-2 loss to FC Dallas on Saturday night before an announced sellout crowd of 18,000 at PayPal Park.

Sarver took a pass from Kaick and went in alone on Earthquakes’ goalkeeper Daniel and scored the winning goal with a shot to the bottom left corner.

It looked like the Earthquakes were headed to a draw on Saturday after defender Reid Roberts scored his first career MLS goal in the 81st minute to tie the game 2-2.

The Earthquakes trailed 2-1 after Petar Musa scored his 12th goal of the season in the 49th minute. But San Jose responded with near constant pressure and had nine corner kicks and 13 shot attempts before Roberts’ goal.

San Jose native Beau Leroux scored a pretty goal for the Earthquakes in the 19th minute for the Quakes, who now have two draws and two losses in their last four matches.

Slow starts to both halves cost the Earthquakes against a young FC Dallas team. After allowing a goal in the opening 54 seconds of the first half following a turnover, the Quakes allowed a go-ahead goal to Musa.

On the goal, Musa stepped in front of Roberts, took a pass into the penalty area from midfielder Herman Johansson, chipped it ahead to himself, and beat goalkeeper Daniel for his 12th goal of the season.

The Earthquakes were playing their fourth match since Timo Werner was injured in a U.S Open Cup Round of 16 game against Minnesota United on April 28. San Jose won that match 4-2, which was then their 11th victory in 12 games.

Since then, the Quakes have hit some speedbumps, earning draws with Toronto and Vancouver before allowing a goal in the 89th minute in a 3-2 loss to the Seattle Sounders on Wednesday, snapping a 10-game unbeaten streak.

The Earthquakes are also dealing with the loss of midfielder Niko Tsakiris, who is expected to miss the next three or four months after he underwent surgery on his right groin on Tuesday.

The two teams traded goals in the first 19 minutes, but the Quakes probably felt they should have taken a one-goal lead into halftime.

Dallas took a 1-0 lead just 54 seconds into the match. Capitalizing on an Earthquakes turnover, Dallas’ Santiago Moreno tried to send a pass through to fellow forward Petar Musa. Benjamin Kikanovic got a foot on the ball, but it went right to Patrickson Delgado, whose shot went off Kikanovic’s leg and past Daniel.

The Quakes got the goal back in the 19th minute after forward Ousseni Bouda sent the ball into the box before it was headed away by Dallas defender Osaze Urhoghide. But with Dallas goalkeeper Jonathan Sirois on the ground, Leroux one-timed the ball while it was in the air into the short side for his third goal of the season.

The Quakes had a golden opportunity to take a 1-0 lead as Ian Harkes drew a foul on Urhoghide in the penalty area. But Leroux’s shot to the bottom left corner was stopped by a diving Sirois.