Best way to preload images in Sencha / jQuery app?

The traditional method of loading images using the new Images () function. But is there any other way that is better than this to load an image during data?

Or, in particular, what is the best way to load images into a script where you can say that I populate the Sencha List component with Name and Image as a list item, where I get the name and image URL from the server?

+4
source share
1 answer

I do not know Sencha, but in this scenario you can just put image tags in a container. The browser will start loading all images into chunks (the size of which depends on the browser).

If you need a way to download images even faster , you can use the old trick: specify different third-level domains for the images. like img1.domain.com, img2.domain.com, ... In this way, the browser parallelizes the download. Of course, for this method you need full control over the web server.

0
source

Source: https://habr.com/ru/post/1434901/


All Articles