How to run custom JavaScript when app is ready?
Articles on: Advanced
How to run custom JavaScript when the website is ready?
Sometimes you need to run some JavaScript code after the website is fully rendered and all elements are ready for interaction.
If you run the code too early (before the web app is fetched all the data and complete rendering) most likely some elements will be missing or lack data.
That's why there is a special event
ssViewerRendered
A working example that opens the details page by clicking on any part of a product card:
This code should be added in Settings tab.
Updated on: 06/03/2023
How to run custom JavaScript when the website is ready?
Sometimes you need to run some JavaScript code after the website is fully rendered and all elements are ready for interaction.
If you run the code too early (before the web app is fetched all the data and complete rendering) most likely some elements will be missing or lack data.
That's why there is a special event
ssViewerRendered
A working example that opens the details page by clicking on any part of a product card:
This code should be added in Settings tab.
Updated on: 06/03/2023
Updated on: 28/12/2023
Thank you!