I
I
iMurser2020-04-02 10:42:48
React
iMurser, 2020-04-02 10:42:48

How to optimize the video on the site?

There are pages on which 3-7 looped videos can be loaded at the same time. I didn't use a gif, because the size was prohibitive. Although now it is not very small (from 500 kB to several mb) on each video, but it is better in every way. Actually, from this on a slow Internet, pages can be loaded for a long time. Please advise, if anyone has come across, how can this situation be improved?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vadimMalovaniy, 2019-09-24
@vadimMalovaniy

And package.jsonwhat is written?

A
Aricus, 2020-04-03
@Aricus

You can also load the page first, and then pull up the videos via ajax, together, or one at a time, as it is better for the perception of the page.

A
Andrey Lazarev, 2020-04-04
@AndrewLazarev

Use "lazy" (asynchronous) video loading.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question