Showing the alternative text while images are loading

Some days ago Šime Vidas tweeted: Why don’t Chrome, Safari reserve space for <img> with height attribute in responsive layouts? As part of the discussion and after some testing in different browsers I found that Firefox is the only browser at the…


This content originally appeared on justmarkup and was authored by justmarkup

Some days ago Šime Vidas tweeted: Why don’t Chrome, Safari reserve space for <img> with height attribute in responsive layouts? As part of the discussion and after some testing in different browsers I found that Firefox is the only browser at the moment who shows the alt attribute while images are loading. I think it would be great if every browser would show the alternative text while images are loading – especially on slow connections this would be very helpful.

Slow connections

When browsing web sites, especially on slow connections, it takes some time until all images are loaded. In addition to defining aspect ratio for images to prevent the jump effect, it would be great if the alternative text would be shown so I could decide more easily if I think it is worth to wait for the image or move on scrolling and reading.

Improve accessibility

I think this would also improve accessibility. If authors would see the value of the alt attribute every time they open their site they would more likely add an alternative text for every image. Adding useful alternative text is something many Authors forget and don’t check before publishing an article. Some CMS also pre-fill the alternative text with information they extract from the image, like the name of the camera. My hope is that by making the alternative text more present many authors will think about it and provide useful information for images.

Styling the alternative text

You can also style the alternative text with CSS. Here is an example of an invalid image where I styled the alternative text.

Feature requests

Because I really want this feature in every browser I opened requests for Chrome (Blink), IE/Edge and Safari (WebKit).

Chrome
Internet Explorer / Edge
WebKit

Let’s see what they think.


This content originally appeared on justmarkup and was authored by justmarkup


Print Share Comment Cite Upload Translate Updates
APA

justmarkup | Sciencx (2016-01-20T05:54:22+00:00) Showing the alternative text while images are loading. Retrieved from https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/

MLA
" » Showing the alternative text while images are loading." justmarkup | Sciencx - Wednesday January 20, 2016, https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/
HARVARD
justmarkup | Sciencx Wednesday January 20, 2016 » Showing the alternative text while images are loading., viewed ,<https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/>
VANCOUVER
justmarkup | Sciencx - » Showing the alternative text while images are loading. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/
CHICAGO
" » Showing the alternative text while images are loading." justmarkup | Sciencx - Accessed . https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/
IEEE
" » Showing the alternative text while images are loading." justmarkup | Sciencx [Online]. Available: https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/. [Accessed: ]
rf:citation
» Showing the alternative text while images are loading | justmarkup | Sciencx | https://www.scien.cx/2016/01/20/showing-the-alternative-text-while-images-are-loading/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.