S
S
Sergey2020-01-13 09:21:43
Web development
Sergey, 2020-01-13 09:21:43

How to upload all images to the site at once?

How to load all the content at the first visit to the site, and not as needed, when the user walks through the pages. To me specifically for myself, I'm not going to torment users.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
antonwx, 2020-01-13
@antonwx

Load them with the given size 1x1. Cached unless prohibited by the user

B
Boris Shepelev, 2020-01-13
@bshepelev

You can create a block in which to upload these images - by standard means. Hide the block itself!

<div style="height:0px;overflow:hidden;">
  <img src="..images/introduction-bg.jpg">
  <img src="../images/about-client-bg.jpg">
  <img src="../images/contacts-bg.jpg">
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question