P
P
PiggyPig2017-07-15 12:18:46
DLE
PiggyPig, 2017-07-15 12:18:46

How to use the same photo in different blocks?

In general, the situation is this. The same photo should be in two different blocks (in order to set your own styles for each later). But since it's not an icon and it's not small enough to use base64 (300-400px), there's nothing left but to load it twice. And somehow I don’t really like that time and requests are wasted on the same photo. I may be wrong about the loading here, but at the moment it seems that way.
Actually the question is: is it possible to load an image once for two different blocks?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Boris Korobkov, 2019-01-22
@BorisKorobkov

Modified and running files are already a consequence when the hacker gained access. This is no longer interesting to anyone.
And the reason must be sought elsewhere. Usually a virus on your computer (and password theft from ftp), password interception (for example, if ftp, and not sftp with public / private keys), password guessing, SQL injection, lack of validation of input data and uploaded files, incorrect web setup servers, etc.

M
Mikhail Yesenin, 2019-01-22
@mirzok

The most common cases are:
1. Login/password was stolen from an FTP client/browser, then direct access was used to change the code
2. Shell upload to the site through forms with insufficient filtering
3. Infected module/update
4. Other site vulnerabilities (for example, SQL injection)

A
Andrey Fedorov, 2017-07-15
@PiggyPig

Set up the cache first. Then nothing will re-download.

O
Oleg, 2017-07-15
@politon

https://jsfiddle.net/1ruzzrf2/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question