On one of our webpage, on clicking the button we display the list of records. We have a loading screen with a text in <p> that is displayed until the records are fetched from DB.
I need to set some wait time using the text in <p> such that it waits until text is displayed before proceeding to the next steps. Once the text is replaced with the list items, want it to resume playback. What should I be using in this case?
Thanks
Satpreet