attribute LowSrc + events? < IMG SRC="pete.jpg" LOWSRC="pete2.jpg" WIDTH=364 HEIGHT=500> (The low quality version, pete2.jpg, is 7,401...">

<IMG / "> attribute LowSrc + events?

< IMG SRC="pete.jpg" LOWSRC="pete2.jpg" WIDTH=364 HEIGHT=500> 

(The low quality version, pete2.jpg, is 7,401 bytes. The high quality version, pete.jpg, is 48,952 bytes.)

I want to show lowsrc first.

after it finishes downloading, start downloading in the background of real src.

I want to show a progress bar. but in order to hide / show the progress bar - I need 2 events.

 when LOWSRC load event -> show progress bar when SRC load event -> hide progress bar 

how can i capture the LOAD event like for lowsrc && & src

change

ive checked this url

and quickly forwarded the photos - and the violinist, I saw that there are 2 images. one small and one large.

but it made me search and find lowsrc attr.

which may also help here.

+6
source share
1 answer

According to various internet sources, lowsrc no longer supported by modern browsers. At least on Chrome 18 / Windows 7, it seems to be completely ignored.

It was never part of HTML4, or HTML5 , although it was supposedly supported by Gecko browsers (I have not tested this).

It is best to use two images, for example, Flickr.

+9
source

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


All Articles