-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Bento opt-in #6353
Add Bento opt-in #6353
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6353 +/- ##
=============================================
+ Coverage 75.12% 75.24% +0.12%
+ Complexity 5912 5902 -10
=============================================
Files 190 235 +45
Lines 17864 17847 -17
=============================================
+ Hits 13420 13429 +9
+ Misses 4444 4418 -26
Flags with carried forward coverage won't be shown. Click here to find out more.
|
dc24210
to
cac1371
Compare
53aac04
to
5ae3ed2
Compare
8c103b4
to
bce8868
Compare
Plugin builds for 76e9c71 are ready 🛎️!
|
Note to self: after #6530 is merged, rebase into |
Co-authored-by: Pierre Gordon <[email protected]>
Would you update the |
Oh yes, indeed. |
QA Passed ✅ Add filter to opt-in to Bento mode. ✅ Enable bento experiment. ✅ Bento versions of scripts are used instead of the latest. bento scripts are converted to amp scripts 1.0 version |
This one is obsolete. Bento is compatible with Optimized AMP now. |
Summary
To opt-in to serving the Bento versions of AMP components (where available), do:
Note that this includes the Bento AMP experiment opt-in script, so it will force dev mode as well.
See #6443.
amp
attribute fromhtml
and adddata-ampdevmode
to Bento experiment opt-inscript
. Done in Experiment: Add nativeimg
opt-in to prevent conversion toamp-img
/amp-anim
#6518.The image sanitizer no longer convertsSee Experiment: Add nativeimg
toamp-img
but instead just ensures dimensions are provided.img
opt-in to prevent conversion toamp-img
/amp-anim
#6518.latest
.The(Not yet supported by AMP.)amp-runtime
is omitted as a dependency of any Bento scripts.Bento stylesheets are enqueued for any Bento components used on the page. (Should these be excluded from CSS concat?)(Not needed when part of AMP page.)Skip converting any non-Bento components?(Not relevant in the context of this PR.)Checklist