Bug 153273 - Show alternative text while images are loading
Summary: Show alternative text while images are loading
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Images (show other bugs)
Version: Safari 9
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-19 23:47 PST by hallo
Modified: 2016-02-04 07:40 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hallo 2016-01-19 23:47:39 PST
On Firefox the alternative text is shown while the images are not loaded. Especially on slow connections it would be very useful to see the alternative text. It may also improve accessibilty of many sites, as authors would see the alternative text on load and would spend more time providing useful text. 

Steps to reproduce the problem:
1. Open http://jsbin.com/nomoce/edit?html,css,output
2. Wait for the image to load
3. Alternative text is not shown

What is the expected behavior?
Alternative text is shown while the image is loading.
Comment 1 Alexey Proskuryakov 2016-01-20 11:34:14 PST
The downside is of course that there will be more flashiness while loading the website.
Comment 2 hallo 2016-02-04 07:40:30 PST
Hi Alexey,

why would there be more flashiness while loading? Images already cause layout when loading, eg: http://output.jsbin.com/xizehe/2 - Note the image has a with and height attribute but by setting img {max-width: 100%; height: auto;} the reserved space for an image before fully loaded is always the same.