Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transformer: Add blurred placeholders for images and video posters #15

Open
2 tasks
schlessera opened this issue Mar 27, 2020 · 0 comments
Open
2 tasks
Assignees

Comments

@schlessera
Copy link
Collaborator

Feature description

Add a new transformer BlurredPlaceholders that adds blurred placeholders into the HTML markup for images and video posters.

These placeholders are very lightweight inline representations of the images that are available as soon as the HTML was loaded and shown while the actual full-size images are being transferred.

Related ampproject/amp-wp#4213


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • All images and video posters have a lightweight inline placeholder representation directly in the HTML markup
  • The inline placeholder is swapped out for the full-size image as soon as that has been fully transferred

Implementation brief

QA testing instructions

  1. Verify: AMP optimization is enabled
  2. Go to the AMP version of a page with many images below the fold
  3. While scrolling new images into view which are being lazy-loaded, there will be an immediate display of a blurred version of the image until the full-size version was fully transferred and swapped in

Demo

Changelog entry

@schlessera schlessera changed the title Transformer: Blurred Placeholders Transformer: Add blurred placeholders for images and video posters Mar 27, 2020
@schlessera schlessera transferred this issue from ampproject/amp-wp Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants