amp-toolbox icon indicating copy to clipboard operation
amp-toolbox copied to clipboard

A collection of AMP tools making it easier to publish and host AMP pages.

Results 115 amp-toolbox issues
Sort by recently updated
recently updated
newest added

We have been getting the following errors recently: 1.) request to https://cdn.ampproject.org/rtv/metadata failed, reason: getaddrinfo EAI_AGAIN cdn.ampproject.org 2.) request to https://cdn.ampproject.org/version.txt failed, reason: connect EHOSTUNREACH Both of the errors seems...

In https://github.com/ampproject/amp-toolbox/pull/1248, we've skipped adding the AMP runtime preload(s) when the boilerplate had already been removed. However, the linter still requires the runtime preload to be present unconditionally in https://github.com/ampproject/amp-toolbox/blob/main/packages/linter/src/rules/RuntimeIsPreloaded.ts....

bug
toolbox-linter

The rule currently performs a strict match for the viewport tag contents: https://github.com/ampproject/amp-toolbox/blob/1c33cc793d3de7da89a6dbab0d57732cf874f292/packages/linter/src/rules/ViewportDisablesTapDelay.ts#L10-L14 AMP also recommends to include `minimum-scale=1` and `initial-scale=1`. ([docs](https://amp.dev/documentation/guides-and-tutorials/learn/spec/amphtml/#vprt)) But because the rule does a strict match,...

Following all of the setup instructions in the readme, @ampproject/toolbox-cors allows my amp-lists to retrieve dynamic content but when submitting an amp-form, the following error is displayed: ``` Uncaught (in...

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...

Something that we do in the WordPress plugin when converting a YouTube iframe into `amp-youtube` is automatically [supply](https://github.com/ampproject/amp-wp/blob/b9bf0d20758de5def2452fe7eb07e7deb22f3221/includes/embeds/class-amp-youtube-embed-handler.php#L116-L133) the poster image placeholder, which can greatly reduce LCP since YouTube videos...

enhancement
toolbox-optimizer

Something that we're finding a lot in WordPress (e.g. https://github.com/ampproject/amp-wp/issues/6036 and [support topic](https://wordpress.org/support/topic/fid-lcp-and-cls-issue/#post-14385558)) is that many sites use fonts and they fail to use `font-display:optional`. This is reported both by...

enhancement
toolbox-optimizer

The linter currently doesn't use a separate recommendation for ESM preloads: https://github.com/ampproject/amp-toolbox/blob/153d76b722906aec1cb4a6c65d88f0c4d418630d/packages/linter/src/rules/RuntimeIsPreloaded.ts#L13 This is misleading, and might even lead to frustration if users blindly apply the recommendation and it doesn't...

bug
toolbox-linter