If we have a data-flux="update" on the page, and that same element has data-flux-delay="1" there should be a 1 second delay before its content is replaced.
There should be a class of flux-updating added as soon as the request starts that will inevitably update its content, and flux-update-complete added once the response is processed and the HTML is edited. The flux-update-complete class can be removed by data-flux-delay seconds.
This should apply to data-flux="live" too. If I want the element to only update once per 5 seconds, it should be possible by using data-flux-delay="5"`.
If we have a
data-flux="update"on the page, and that same element hasdata-flux-delay="1"there should be a 1 second delay before its content is replaced.There should be a class of
flux-updatingadded as soon as the request starts that will inevitably update its content, andflux-update-completeadded once the response is processed and the HTML is edited. Theflux-update-completeclass can be removed bydata-flux-delayseconds.This should apply to
data-flux="live" too. If I want the element to only update once per 5 seconds, it should be possible by usingdata-flux-delay="5"`.