I would recommend doing the download on a special starter layout.
It is better to load the whole array if there is a lot of data.
I have created a simple example of loading screen and saving array and variable to local storage. This should work on mobiles and all browsers.
File c3p