Lazy-loading option preloads nearby items. It accepts array with two integers, first one – is a number of items to preload before the current, second one – the number of images to preload after the current. For example
preload: [1,3]Â will load 3 next items and 1 that is before current. These values are automatically switched based on direction of movement.
lazyLoadÂ event, like so: