ampproject / ampproject/amp-toolbox

Prevent or intercept AMP Optimizer warning in console

Open
#1,263 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
459
Forks
242
PR merge metrics
No merged PRs in 30d

Description

Hi, is there any way to prevent or intercept `AMP Optimizer` warning on console?

```
AMP Optimizer WARNING Found 8 hero elements on the page, but the maximum is set to 4. The limit can be configured via the 'maxHeroImage' parameter.
```

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the AMP Optimizer console warning described in the issue and inspect how the maxHeroImage parameter is handled. Determine whether suppressing or intercepting this warning is a supported behavior, then document or define the required change and its completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.