Magento actually provides a method for this for you. Use this to check whether you are in secure mode.
This code automatically grabs all the images from the website and get them dancing in round pattern, increasing speeds by time. So now just press Ctrl + Shift + J on chrome and Ctrl + Shift + K on firefox to open the console menu and paste the below code into it. Do have a look at the below video if you find any problem.