-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Allow on: visible
to listen to amp-list
items.
#27835
Comments
Thanks for filing this feature request! Can you provide more information on how you anticipate using this? Since AMP actions and events can be used to create dynamic experiences, and something like a |
Hi @caroqliu! We load recommended articles via However, expectedly, browser throws an error when trying to track visibility for something that's not there yet:
Throws
Is this enough info? |
I found another thread issue (from 2017) for a similar request that ended up with the addition of the |
Actually, I keep mentioning |
Other closed issue (#3857) supposedly fixed. |
cc @ampproject/wg-analytics |
Thanks for reporting this. Yes this is a known issue. Another restriction that you may encounter is: AMP doesn't support tracking the visibility of non AMP elements. We are working to remove this restriction. #21727 is related. And you may be able to fix it by placing the |
What
When you use
amp-list
(way below the fold), it should be possible to add a visibility tracker on thoseamp-list
's items when they start showing up. It's currently not possible as theid
the listeners are attached to are not present yet.Additional context
The
visibilitySpec
options don't seem to help.The text was updated successfully, but these errors were encountered: