K
K
Konstantin Shishmarev2020-06-11 11:45:21
HTML
Konstantin Shishmarev, 2020-06-11 11:45:21

How to write paths to images for their correct loading?

Hello people. There was such a situation. I have images (jpg, png, webp) on my project. In the html file, the path to the images is something like this: <`img src="img/Logo.jpeg" alt=""`>. How to make it so that .webp is loaded first, after .jpeg, and after .png to optimize the loading of the site?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2020-06-11
@Konstantin_Shi

Do you want to upload three versions of the same file? What for?
There is srcset and there is progressive jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question