{"action":"created","issue":{"url":"https://api.github.com/repos/aFarkas/lazysizes/issues/81","labels_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/81/comments","events_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/81/events","html_url":"https://github.com/aFarkas/lazysizes/issues/81","id":62175249,"number":81,"title":"Preloading within slideshow","user":{"login":"OliverFisher","id":11427646,"avatar_url":"https://avatars.githubusercontent.com/u/11427646?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverFisher","html_url":"https://github.com/OliverFisher","followers_url":"https://api.github.com/users/OliverFisher/followers","following_url":"https://api.github.com/users/OliverFisher/following{/other_user}","gists_url":"https://api.github.com/users/OliverFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverFisher/subscriptions","organizations_url":"https://api.github.com/users/OliverFisher/orgs","repos_url":"https://api.github.com/users/OliverFisher/repos","events_url":"https://api.github.com/users/OliverFisher/events{/privacy}","received_events_url":"https://api.github.com/users/OliverFisher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-16T18:49:56Z","updated_at":"2015-03-18T09:58:06Z","closed_at":null,"body":"Hello\r\n\r\nI'm using your excellent plugin to lazy load images within a slideshow (Royal Slider). Whilst it is working, I would ideally want the ability to preload at least the next image along in the slider. I notice in your documentation you mention the 'Intelligent prefetch/preload' which I can see does indeed work very well on vertically scrolling images (like if I disable the slider and just have the images one on top each other) - I assume there is a certain amount of pixels it has to get near to the image to trigger the preloading?\r\n\r\nHowever, within the slider this works less well, and the images are a little slow and \"jumpy\" when cycling through the slideshow and don't appear to be preloading. I also saw in the documentation the lazySizesConfig.preloadClass where you say \"Note: This class can be also dynamically set ($currentSlide.next().find('.lazyload').addClass('lazypreload');).\" Now it seems like this might provide the answer I'm looking for but as my programming knowledge is pitiful at best, I am uncertain how exactly to use this code. If you could point me in the right direction I'd be very grateful!\r\n\r\nThis is the page I'm working on if you'd like to see what I mean: http://frontwardsdesign.co.uk/geoffreypreston/project/the-new-house/\r\n\r\nMany thanks\r\nOliver"},"comment":{"url":"https://api.github.com/repos/aFarkas/lazysizes/issues/comments/82859887","html_url":"https://github.com/aFarkas/lazysizes/issues/81#issuecomment-82859887","issue_url":"https://api.github.com/repos/aFarkas/lazysizes/issues/81","id":82859887,"user":{"login":"OliverFisher","id":11427646,"avatar_url":"https://avatars.githubusercontent.com/u/11427646?v=3","gravatar_id":"","url":"https://api.github.com/users/OliverFisher","html_url":"https://github.com/OliverFisher","followers_url":"https://api.github.com/users/OliverFisher/followers","following_url":"https://api.github.com/users/OliverFisher/following{/other_user}","gists_url":"https://api.github.com/users/OliverFisher/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverFisher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverFisher/subscriptions","organizations_url":"https://api.github.com/users/OliverFisher/orgs","repos_url":"https://api.github.com/users/OliverFisher/repos","events_url":"https://api.github.com/users/OliverFisher/events{/privacy}","received_events_url":"https://api.github.com/users/OliverFisher/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T09:58:06Z","updated_at":"2015-03-18T09:58:06Z","body":"Hello\r\n\r\nThat is incredibly kind of you! Thank you so much. However, I cannot get it to work. I have put your plugin code in a separate js file which I am enqueueing after Royal Slider, and then I am adding the initialising code jQuery('.royalSlider').lazysizesRoyal(); just before the closing body tag, again after the initialising code of Royal Slider - is this correct? Do I need to change any of the '$' in the code to 'jQuery' as I am within Wordpress? I am not getting any errors in the console and the script is enqueueing correctly. Please forgive me if I am doing something stupid (I almost certainly am)!\r\n\r\nThanks again for your help.\r\nOliver"}}