Skip to content

Show blurredPlaceholders warning only when enabled#1151

Merged
sebastianbenz merged 1 commit intoampproject:mainfrom
att55:hide-blurred-placeholders-warning
Mar 1, 2021
Merged

Show blurredPlaceholders warning only when enabled#1151
sebastianbenz merged 1 commit intoampproject:mainfrom
att55:hide-blurred-placeholders-warning

Conversation

@att55
Copy link
Copy Markdown
Contributor

@att55 att55 commented Feb 28, 2021

Overview

Hi there!

I found that the warning of blurredPlaceholders was shown even if blurredPlaceholders option was disabled.
https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer#blurry-image-placeholders

AMP Optimizer AddBlurryImagePlaceholders WARNING jimp and lru-cache need to be installed via `npm install jimp lru-cache` for this transformer to work

I don't think there is a need to show the waring when the option is disabled.
So, I change that the waring is shown only when the option is enabled.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Feb 28, 2021

CLA assistant check
All committers have signed the CLA.

@att55 att55 changed the title Hide blurredPlaceholders warning when disabled Show blurredPlaceholders warning only when enabled Feb 28, 2021
Copy link
Copy Markdown
Collaborator

@sebastianbenz sebastianbenz left a comment

Choose a reason for hiding this comment

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

Good one! Thanks for fixing!

@sebastianbenz sebastianbenz merged commit e20e975 into ampproject:main Mar 1, 2021
@att55 att55 deleted the hide-blurred-placeholders-warning branch March 2, 2021 01:26
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.

3 participants