Timestamps for noscript users
Author: julianlamCreated Feb 14, 2023Updated Aug 23, 2026
Labelsrequest for comments
We currently render relative timestamps via the timeago plugin. Users without javascript enabled don't see them, for obvious reasons.
Solutions
- Show the ISO date in template, and then swap it out with the relative date, but there would be a flash where the fallback would be visible. Possible to mitigate this via noscript specific scss (we had that at one point, not sure if still around/working)
- The timeago span is empty and takes up no space already, maybe just add a
<noscript>tag next to it.- We would need to replace all timeago spans with a helper, though.
Source: NodeBB/NodeBB