since ‎30-05-2017
‎10-12-2019
bigweshall
Level 1
Is Polling the Best Way to Go?
Avatar

bigweshall

bigweshall
- Adobe Target
I am working with a site that fires JavaScript functions at various points in a session. Right now I am polling certain pages using setinterval at 1 second looking for the results of the a function having fired (a div's css display == 'block', a span's text == 'thank you', etc.). Is there a better way to listen for a function to execute and then firing my own code in response?

Views

744

Likes

0

Replies

2