D
D
DeniSidorenko2020-06-30 14:18:44
1C-Bitrix
DeniSidorenko, 2020-06-30 14:18:44

Ajax image upload in Bitrix?

Good afternoon, how can I do ajax image loading in a slider.
There are 3 sliders on one page, each slider has 30 images (the first one has 80 images at all)
Even if you reduce the images and optimize them, you still get a huge weight. How can I do ajax upload. For example, upload 10 slides

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2020-06-30
@DeniSidorenko

This is indirectly related to 1C-Bitrix, since such a problem would be on any CMS.
You need to delve into the lazy-loading of the slider you are using.
For example, we use Swiper Slider and there are quite detailed instructions for implementing lazy loading: https://swiperjs.com/api/#lazy

A
Anton, 2020-06-30
@Eridani

Andrey Nikolaev Right, this is Lazy Load, otherwise, each more or less slider has an event system, in particular, a slide change event, and at this moment you can just initialize the image loading

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question