Lončarić has been part of Dinamo Zagreb's first team since the beginning of the 2005–06 season, but went on to spend the second part of the season on loan to Lokomotiva, who played in the Treća HNL at the time. Returning to Dinamo Zagreb for the beginning of the 2006–07 season, he made his competitive debut for the club on 1 October2006 in their 2–2 draw away at Hajduk Split, following a couple of blunders by the first-choice goalkeeper Ivan Turina early in the season. He subsequently became the club's first-choice goalkeeper and appeared in a total of 26 domestic league matches during the season. However, following the club's signing of German goalkeeper Georg Kochin the summer of 2007, Lončarić once again found himself relegated to the bench and only appeared in two domestic league matches early in the season before sustaining an injury in a cup match in October 2007, which led to him being sidelined for most of the season and eventually losing his place as the club's second-choice goalkeeper to Ivan Kelava. Following the departure of Koch in the summer of 2008, the club decided to re-sign former Croatian international goalkeeper Tomislav Butina to serve as the new first-choice goalkeeper, with Kelava keeping his place as the second-choice goalkeeper and Lončarić staying the club's third-choice goalkeeper until Kelava was loaned to Lokomotiva Zagreb in August 2009. As the club's third-choice goalkeeper, Lončarić made no competitive appearances for Dinamo Zagreb throughout the entire 2008–09 season. However, following a couple bad performances by Butina in European matches, Lončarić was given a second chance as the club's first-choice goalkeeper and made his first competitive appearance in nearly two years when he appeared in Dinamo Zagreb's 6–0 win at home to Rijeka on 20 September 2009 in the Prva HNL. On 1 October 2009, exactly three years after his competitive debut for Dinamo, Lončarić made his European debut for the club in their 3–0 away win at Timişoara in the UEFA Europa League. However, he was soon forced to take another lengthy break after renewing his injury in Dinamo's Europa League match against Ajax on 22 October 2009. His first competitive match after the injury break came on 31 July 2010 in a 2–1 defeat at home to Rijeka in the Croatian top flight, deputising for the injured Butina. On 4 August 2010, he made his debut in the UEFA Champions League qualifiers, at home to Sheriff Tiraspol. After a 1–1 draw in the regular 90 minutes and the ensuing 30 minutes of extra time, the match went into a penalty shootout, where Lončarić was able to save two kicks, but Dinamo eventually lost 6–5. Dinamo Zagreb was relieved by departure of Butina, which saw Lončarić further increase his first-choice goalkeeper status. However, Lončarić was again injured in a league match at Hajduk Split on 11 September 2010, his 6th appearance in the competition during the 2010–11 season. He subsequently did not appear in a competitive match for almost a year. He made three appearances in the league during the first half of the 2011–12 season, his final season with Dinamo Zagreb.
Tromsø
In January 2016, Lončarić signed a season-long contract with Norwegian club Tromsø IL. Initially the club's second-choice goalkeeper, he made his league debut on 9 July 2016 in a 2–2 draw at home to Haugesund. He kept his place in the starting line-up for the remainder of the season, making a total of 16 appearances in the top flight. On 7 August 2018 at the age of 31 Lončarić decide to retire from football after a new knee injury.
International career
Lončarić started his international career for Croatia with a debut for the under-16 team in a friendly match against the under-16 team of Slovenia on 5 March 2002. He made seven more appearances for the under-16 selection before debuting for the under-17 team in a friendly match against Czech Republic on 7 August 2002, aged just 15. Lončarić was very successful playing for the under-17 team, collecting a total of 17 caps throughout 2002 and 2003. He featured in two friendly matches for the under-18 team and then with 17 years of age debuted for the under-19 team. Lončarić made a total of 13 appearances for the under-19 selection. He had a short spell with the under-20 team, playing in four friendly matches throughout 2006 and 2007. In 2007, he made his last appearances for the Croatian youth teams, featuring in three matches for the under-21 team. Lončarić was capped a total of 47 times for the Croatian youth teams.
Career statistics
Club
Note: the Croatian Cup appearances for Dinamo Zagreb can be viewed at the official website of the club under the section The Match.