upgrade @ampproject/toolbox-optimizer to 2.6.0 (#16043)
See [release notes](https://github.com/ampproject/amp-toolbox/releases/tag/v2.6.0). **Highlight:** [hero images can now be server-side rendered](https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer#preloadheroimage) by annotating then with `data-hero`. This will greatly improves LCP when using large images in the first viewport. ``` <amp-img data-hero src="/hero.jpg" layout="responsive" width="640" height="480"></amp-img> ``` Also fixes #15979
Showing
想要评论请 注册 或 登录