Photoswipe code and preload
-
Hello, I see the photoswipe code twice in my headers and I also notice that each page is preloading all of the linked images on initial load. I looked briefly at the plugin and it appears set to [1,1] but I’m not sure it is and if it is it’s not working. I’m going to try to insert the preload into the double string of code below, however it would be nice to have it work properly or have an option to set it.
<!-- BEGIN: Boxers and Swipers --> <script type="text/javascript"> jQuery(function() { jQuery(".boxersandswipers").photoSwipe({ bgOpacity: 1,captionArea: true,shareButton: true,fullScreenButton: true,zoomButton: true,preloaderButton: true,tapToClose: false,tapToToggleControls: true,animationDuration: 333,maxSpreadZoom: 2,history: true }); jQuery(".boxersandswipers").live('click', function(e){ e.preventDefault(); jQuery(".boxersandswipers").photoSwipe({ bgOpacity: 1,captionArea: true,shareButton: true,fullScreenButton: true,zoomButton: true,preloaderButton: true,tapToClose: false,tapToToggleControls: true,animationDuration: 333,maxSpreadZoom: 2,history: true }); }); }); </script>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Photoswipe code and preload’ is closed to new replies.