--- layout: default nav: attributes > ic-poll ---
ic-poll - The Poll AttributeThe ic-poll attribute tells Intercooler to poll the URL given by a ic-src
attribute on a given interval, updating the element if it has changed.
Note that Intercooler will not replace the element unless its SHA256 fingerprint has changed, to prevent blinky-blink UIs.
Also, you may find the ic-transition attribute useful
if you wish to change how the result is swapped in.
The value of the attribute should a valid integer, followed by the string "s" (for seconds) or "ms" (for milliseconds). (e.g. ic-poll="100ms" indicates that the server should be polled every 100 milliseconds.)
ic-poll has no dependency implications.
Here is a simple example of a poll interval:
<div ic-src="/seconds" ic-poll="2s">You have been on this page for 0 seconds...</div>