`function update() { $("#live").load("/get_links/hot"); } setInterval(update, 10000);update();`
Polling per se is ok but you should do it on the server and push to the client through web sockets or server-sent events [1].
Refs:
[1] https://developer.mozilla.org/en-US/docs/Web/API/Server-sent...
[2] https://github.com/Max00355/HNLive/blob/master/templates/new...