https://bugzilla.mozilla.org/show_bug.cgi?id=547941

?

On 7 February 2013 15:24, Mayhem <notifications@github.com> wrote:

> In script.coffee:
>
> > +
> > +  # changing all relative dates as soon as possible incurs many annoying
> > +  # redraws and scroll stuttering. Thus, sacrifice accuracy for UX/CPU economy,
> > +  # and perform redraws when the DOM is otherwise being manipulated (and scroll
> > +  # stuttering won't be noticed), falling back to INTERVAL while the page
> > +  # is visible.
> > +  #
> > +  # each individual dateTime element will be added to the stale list when it
> > +  # needs to change.
> > +  stale: []
> > +  flush: $.debounce($.SECOND, ->
> > +    # no point in changing the dates until the user sees them
> > +    return if d.hidden
> > +    for dateEl in RelativeDates.stale
> > +      if d.contains dateEl # not removed from DOM
> > +        diff = Date.now() - dateEl.dataset.utc * 1000
>
> And doesn't implement WeakMaps.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/MayhemYDG/4chan-x/pull/897/files#r2925953>.
>
>