Currently the main function of my app is, there is one screen when a user clicks a button, a random image is shown (out of 130 images, an image is chosen). There are actually two of these buttons on the same page with 130 hidden images each. In other words, 2 buttons and a total of 260 or so images are hidden until buttons are pressed and images are chosen at random from a list to display when the button is pressed.
My app works perfectly fine, except my end-users are saying there is a lag when first opening the page mentioned. This makes sense because I probably did not choose the best way to program this.
Does anyone have a suggestion how I can reduce lag and still have a random photo be shown from a list of 130 after a button is clicked?
The photo attached is only a partial screenshot of the main blocks.
You guys are the best and thank you in advance!