wc-generator: update api js examples pattern to use event #443
Izook
started this conversation in
Improved tech suggestion
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
General Support Request
For API demo examples that require JavaScript, we use the following snippet to determine if all content has been loaded onto the page:
We should explore the possibility of waiting for an event (potentially onLoad) to load the content to improve the consistency of this snippet instead of trying repeatedly until the function succeeds.
Possible Solution
Await setting up demos until the
onLoad
event (or other more appropriate event) fires.Additional context
https://github.com/AlaskaAirlines/auro-button/pull/214/files#r1223595594
Beta Was this translation helpful? Give feedback.
All reactions