Skip to content

🐛Change loader code to no longer add a default placeholder.#23971

Merged
wassgha merged 2 commits intoampproject:masterfrom
sparhami:loader_no_default_placeholder
Aug 15, 2019
Merged

🐛Change loader code to no longer add a default placeholder.#23971
wassgha merged 2 commits intoampproject:masterfrom
sparhami:loader_no_default_placeholder

Conversation

@sparhami
Copy link
Copy Markdown

Instead, create the background as part of the as a part of the loader
element itself. This makes sure the background is removed when the
loader is removed.

This avoids an issue where the placeholder appears on top of an
<amp-img> if the image finishes downloading before the loaders code
runs.

Closes #23964

Instead, create the background as part of the as a part of the loader
element itself. This makes sure the background is removed when the
loader is removed.

This avoids an issue where the placeholder appears on top of an
<amp-img> if the image finishes downloading before the loaders code
runs.
@sparhami sparhami requested a review from wassgha August 15, 2019 00:29
@wassgha wassgha self-requested a review August 15, 2019 20:36
Copy link
Copy Markdown
Contributor

@wassgha wassgha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wassgha wassgha merged commit c0d163a into ampproject:master Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race condition in new loader placeholders

3 participants