koding / kd

UI Framework for web applications.
MIT License
115 stars 35 forks source link

Use new timeago.js library #168

Closed hustcc closed 7 years ago

hustcc commented 7 years ago

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.

sinan commented 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.

hustcc commented 7 years ago

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.