Open
Description
It makes more sense to use setTimeout instead of setInterval.
If this is done, the function can determine when the text is actually going to change and not waste calls that don't do anything. If the text says 2 years ago
, it's probably not going to change in a minute, so it makes more sense to calculate the time delay.
Also, this would be more efficient for a modified version that shows %d seconds ago
and needs to update at 1000 ms intervals only before it becomes a minute. Then it can change the interval to 60000 ms.
Metadata
Assignees
Labels
No labels
Activity