Skip to content
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

load data without user interaction with amp-script, amp-list and amp-mustache. #39952

Closed
sayamalvi opened this issue Apr 9, 2024 · 3 comments
Assignees

Comments

@sayamalvi
Copy link

sayamalvi commented Apr 9, 2024

I am using amp-script to provide data for amp-list and render it with amp-mustache. But the story/data only gets populated when I hit the page reload. Earlier I was using a script which was linked with amp-script. I thought the issue might be related to the fetch api but now I am loading the data from local storage, still I have to hit the reload to make content visible on the screen. Need help regarding this.
Screenshot 2024-04-09 165900
Initial render is showing a loader:
Screenshot 2024-04-09 171215
After hitting the page reload story is rendered:
Screenshot 2024-04-09 171126

@erwinmombay
Copy link
Member

@sayamalvi can the issue be reproduced locally? do you happen to have a sample page we could use to debug? thanks

@sayamalvi
Copy link
Author

sayamalvi commented Apr 20, 2024

This particular issue has been resolved. There was a script tag which was causing the issue. I removed that and now the page is loading fine.

<script async="" src="https://cdn.ampproject.org/v0.mjs" type="module" crossorigin="anonymous"></script>. This async="" was causing the issue probably.

Should I close the issue from my end ?

@erwinmombay
Copy link
Member

glad it got resolved. ill close the issue on my end. thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants