Loading large amounts of JSON data

We have an app that relies on big data sets - 2,000-3,000 records. When we get a large data set back from an API it can stall the app - it freezes for a few seconds (up to 30 sec) when the data arrives.

Is it possible to somehow push receiving the data to the background so it doesn’t impact the front end of the app?

Thanks,

Nathan.

Is it the json.decode step that freezes the app?

Nope it’s when the http data comes in - before I get to actually do anything in the callback function

What api are you using to get the data? network.request?

Yes that’s the one

Is it the json.decode step that freezes the app?

Nope it’s when the http data comes in - before I get to actually do anything in the callback function

What api are you using to get the data? network.request?

Yes that’s the one