Closed hustcc closed 7 years ago
thanks for the pr @hustcc. Since your library does the auto update itself, we need a better refactor here.
Also before switching to yours we need to test the memory footprint because it does the auto-updating.
the API render
is auto update for web page, but the API format
just get the human readable string.
Very glad to do something for this project.
Replace the heavy jQuery.timeago plugin with a smaller library named timeago.js.
This library is ~2KB, has no dependencies and includes several built-in locales. It also updates the timestamp on the page in realtime.