PERF: generates dates tooltip on demand (PR #13944)

This commit also:

  • replaces decorateCooked by decorateCookedElement
  • deprecate $.applyLocalDates usage
  • drops the need for span[data-*] in markdown pipeline

As a result it should be slightly faster to type in the composer when the post has lots of dates.


Probably a micro-optimization, but should we move this outside of the api.decorateCookedElement? That way, we only retrieve the site settings on init rather than everytime we decorate a post?

yes sure I usually would do it