• Robert Knight's avatar
    Remove Moment.js · a07d0f77
    Robert Knight authored
    Moment.js is only used in a single place, for converting ISO8601 date-time strings
    from the annotation's 'updated' field to user-friendly
    date strings (eg. 'Wednesday 17 Dec, 18:59') for the tooltips
    for the last-updated link in the annotation card.
    
    Replacing this with functions from the built-in Date object saves
    167KB from the generated bundle size (see
    moment/min/moment-with-locales.min.js) and also speeds up the digest
    cycle. For 20 annotation cards in the /stream view, generating the
    date string used to take 6-7ms with Moment. It takes <2ms with
    the built in functions in a current build of Chrome.
    
    This still shows up as the most expensive watch expression, so
    we might want to add caching as well.
    a07d0f77
Name
Last commit
Last update
..
annotator Loading commit data...
config Loading commit data...
directive Loading commit data...
filter Loading commit data...
test Loading commit data...
vendor Loading commit data...
annotation-mapper.js Loading commit data...
annotation-sync.coffee Loading commit data...
annotation-ui-controller.coffee Loading commit data...
annotation-ui-sync.coffee Loading commit data...
annotation-ui.coffee Loading commit data...
annotation-viewer-controller.coffee Loading commit data...
app-controller.coffee Loading commit data...
app.coffee Loading commit data...
auth-controller.js Loading commit data...
auth.js Loading commit data...
blocklist.js Loading commit data...
bridge.coffee Loading commit data...
create-group-form.js Loading commit data...
cross-frame.coffee Loading commit data...
discovery.coffee Loading commit data...
drafts.js Loading commit data...
dropdown-menu.js Loading commit data...
events.js Loading commit data...
features.js Loading commit data...
flash.coffee Loading commit data...
form-respond.coffee Loading commit data...
groups.js Loading commit data...
host.coffee Loading commit data...
identity.coffee Loading commit data...
installer-controller.js Loading commit data...
karma-phantomjs-polyfill.js Loading commit data...
karma.config.js Loading commit data...
local-storage.coffee Loading commit data...
permissions.coffee Loading commit data...
query-parser.coffee Loading commit data...
render.coffee Loading commit data...
search-filter.coffee Loading commit data...
session.js Loading commit data...
settings.js Loading commit data...
share-group-form.js Loading commit data...
site.js Loading commit data...
store.js Loading commit data...
stream-controller.coffee Loading commit data...
stream-filter.coffee Loading commit data...
streamer.js Loading commit data...
tags.coffee Loading commit data...
threading.coffee Loading commit data...
time.coffee Loading commit data...
ua-detect.js Loading commit data...
unicode.coffee Loading commit data...
view-filter.coffee Loading commit data...
websocket.js Loading commit data...
widget-controller.coffee Loading commit data...