Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

The original image is visible underneath the placeholder while loading #99

Open
1 task done
TonyBogdanov opened this issue Oct 18, 2016 · 0 comments
Open
1 task done

Comments

@TonyBogdanov
Copy link

Description

When preload is set, but there is no placeholder specified, or it resolves to a transparent / translucent image, the original image underneath is seen being loaded. If the image is progressive, it results in an image being progressively loaded (line by line) under the placeholder, which (for me) defeats the purpose of the placeholder.

Expected outcome

The original image should not be visible up until fully loaded, regardless of the placeholder.

Actual outcome

The original image is seen being progressively loaded (line by line) under the placeholder image.

Live Demo

https://jsbin.com/culezequje/1

Steps to reproduce

  1. Open the JSBin.
  2. Open the Chrome console and throttle your connection to something slower than 1mb/s, so you'll be able to see the original image being loaded (it's about 2.5 mb).
  3. Make sure you also check "Disable cache", so the image won't come from the cache instantly.

Browsers Affected

  • Chrome
  • [?] Firefox
  • [?] Safari 9
  • [?] Safari 8
  • [?] Safari 7
  • [?] Edge
  • [?] IE 11
  • [?] IE 10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant