{"action":"opened","issue":{"url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1358","labels_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1358/comments","events_url":"https://api.github.com/repos/nolimits4web/Swiper/issues/1358/events","html_url":"https://github.com/nolimits4web/Swiper/issues/1358","id":93618653,"number":1358,"title":"LazyLoad and appendSlide doesn´t load first Image","user":{"login":"magic-77","id":10066784,"avatar_url":"https://avatars.githubusercontent.com/u/10066784?v=3","gravatar_id":"","url":"https://api.github.com/users/magic-77","html_url":"https://github.com/magic-77","followers_url":"https://api.github.com/users/magic-77/followers","following_url":"https://api.github.com/users/magic-77/following{/other_user}","gists_url":"https://api.github.com/users/magic-77/gists{/gist_id}","starred_url":"https://api.github.com/users/magic-77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magic-77/subscriptions","organizations_url":"https://api.github.com/users/magic-77/orgs","repos_url":"https://api.github.com/users/magic-77/repos","events_url":"https://api.github.com/users/magic-77/events{/privacy}","received_events_url":"https://api.github.com/users/magic-77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T20:17:55Z","updated_at":"2015-07-07T20:17:55Z","closed_at":null,"body":"Hi,\r\ni need to append all Slides dynamically. So i´m using this code.\r\n\r\n    <div class=\"swiper-container swiper-gallery\">\r\n      <div class=\"swiper-wrapper\"></div>\r\n        <div class=\"swiper-button-prev sgp\"></div>\r\n        <div class=\"swiper-button-next sgn\"></div>\r\n    </div>\r\n\r\nand JS\r\n\r\n    var pgal0 = [\r\n        {src: 'assets/images/9/8B4MQPNAB6-5505aee9.jpg'},\r\n        {src: 'assets/images/6/ESTTV0M8OG-43b7a666.jpg'},\r\n        {src: 'assets/images/7/T96V0685JW-69354fe7.jpg'},\r\n        ....\r\n    ];\r\n\r\n    $(\".initGallery\").on(\"click\", function() {\r\n            var swiperGallery = new Swiper(\".swiper-gallery\", {\r\n              nextButton: \".sgn\",\r\n              prevButton: \".sgp\",\r\n              grabCursor: true,\r\n              preloadImages: false,\r\n              lazyLoading: true,\r\n              onInit: function(swiperGallery) {\r\n                swiperGallery.appendSlide([\r\n                  \"<div class='swiper-slide'><img data-src='\" + pgal0[0].src + \"' class='swiper-lazy'><div class='swiper-lazy-preloader swiper-lazy-preloader-white'></div></div>\",\r\n                  \"<div class='swiper-slide'><img data-src='\" + pgal0[1].src + \"' class='swiper-lazy'><div class='swiper-lazy-preloader swiper-lazy-preloader-white'></div></div>\",\r\n                  \"<div class='swiper-slide'><img data-src='\" + pgal0[2].src + \"' class='swiper-lazy'><div class='swiper-lazy-preloader swiper-lazy-preloader-white'></div></div>\",\r\n                 ...\r\n             ]);\r\n           }\r\n        });\r\n      });\r\n\r\nthis causes, that the first image isn´t loaded. But swiping to the next slide, and sliding back loads the first image well.\r\nWhen using \"swiperGallery.prependSlide\" first displayed image is being loaded.\r\nDid i forgot an additional parameter or this is kind og Bug ?\r\n\r\n\r\n"}}