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
✨ [amp-autocomplete] Add support for prefetch
attribute for prefetching remote data
#31021
Conversation
cc @caroqliu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, however note that users cannot start using this attribute until it is allowed in the validation rules. Please allow prefetch
and update the validator tests too. :)
Thanks for your comments @caroqliu. I've updated the validation rules and added tests, PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! Looks good. Please also add this attribute to the documentation in extensions/amp-autocomplete/amp-autocomplete.md
Thanks for approving. I've already updated the documentation in |
extensions/amp-autocomplete/validator-amp-autocomplete.protoascii
Outdated
Show resolved
Hide resolved
extensions/amp-autocomplete/validator-amp-autocomplete.protoascii
Outdated
Show resolved
Hide resolved
🤦♀️ You're right! Ignore me :) |
* cl/341717450 Revision bump for #31021 * cl/342729148 Revision bump for #31099 * cl/342767641 Revision bump for #31056 * cl/342951159 Fix blurry-placeholder test cases * cl/342977800 Restricts value of transformed attribute Co-authored-by: Michael Rybak <michaelrybak@google.com> Co-authored-by: honeybadgerdontcare <sedano@google.com>
…hing remote data (ampproject#31021) * Add support for `prefetch` attribute * Update validation rules and add test * Update validator-amp-autocomplete.out * Address code review comments
* cl/341717450 Revision bump for ampproject#31021 * cl/342729148 Revision bump for ampproject#31099 * cl/342767641 Revision bump for ampproject#31056 * cl/342951159 Fix blurry-placeholder test cases * cl/342977800 Restricts value of transformed attribute Co-authored-by: Michael Rybak <michaelrybak@google.com> Co-authored-by: honeybadgerdontcare <sedano@google.com>
prefetch
attributeResolves #24687