I just got my first raspberry pi to play with and am working on switching between visible images with JavaScript. My problem is it takes between 6 to 10 seconds from when I click my button for the image to switch on my pi, but it's instant on my mac and windows machine. The browser is not retrieving the images from the web each time I press the button. Is there anyway I can make this faster without resizing the images?
Here's the link to my test page: http://ec2-54-211-152-150.compute-1.amazonaws.com/test/test.html