Skip to content
#

amp

Here are 397 public repositories matching this topic...

amp-wp
westonruter
westonruter commented Apr 8, 2021

Bug Description

On an AMP-first site I ran across the following amp-img:

<!--noscript-->
<amp-img height="1" width="1" alt="fbpx" src="https://www.facebook.com/tr?id=413752866132374&amp;ev=PageView&amp;noscript=1" class="amp-wp-enforced-sizes amp-wp-6a19fc1 i-amphtml-layout-intrinsic i-amphtml-layout-size-defined" layout="intrinsic" data-amp-
mk0x9
mk0x9 commented Nov 8, 2019

When optimizer used in conjuction together with optimizer-express it's not possible to pass params to optimizer's transformHtml method, only configuration to the optimizer constructor.

And while some transformers honor those configurations:
https://github.com/ampproject/amp-toolbox/blob/efe5775c5ff93ebacd6f7bd336ba02d829eca579/packages/optimizer/lib/transformers/AmpBoilerplateTransformer.js#

Improve this page

Add a description, image, and links to the amp topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the amp topic, visit your repo's landing page and select "manage topics."

Learn more