SyntaxFix
Write A Post
Hire A Developer
Questions
I created a tiny JQuery plugin for this. You may try it:
$.poll('http://my/url', 100, (xhr, status, data) => { return data.hello === 'world'; })
https://www.npmjs.com/package/jquerypoll