[openstreetmap/openstreetmap-website] Update relative timestamps dynamically (Issue #6534)
Andy Allan
notifications at github.com
Thu Nov 20 15:47:06 UTC 2025
gravitystorm left a comment (openstreetmap/openstreetmap-website#6534)
> I suggest changing the served page to use absolute date formats and relying on client-side JavaScript to relativize it in the first place.
Can this be done without creating content flicker, where the html version appears first before the JS overwrites it?
If not, or if that's complex to implement, then I'd prefer to continue serving the relative dates in the HTML and the JS can lazily take over updating it a few seconds after page load. The timestamp is already in the "datetime" attribute of the surrounding `<time>` tag so the JS can use that as the base.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/6534#issuecomment-3558757373
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/6534/3558757373 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251120/391eb9f1/attachment.htm>
More information about the rails-dev
mailing list