Links For You (1/10/26)
Briefly

Links For You (1/10/26)
"Social media can be a great place to share links with folks, but it's very much hit or miss. Someone may share something incredibly cool that you would love to boost, but if you miss it, you're out of luck. I subscribe to many listservs that share good tech links, but a while ago I thought it would be cool to share and promote links I thought were especially cool."
"Yall know I love web components, and next up is a cool one from GitHub called relative-time-element. This makes use of Intl to display dates relatively, i.e. so and so days from now. (You can check out my post on it here.) Here's an example of how it looks: <relative-time datetime="2026-01-01T16:30:00-08:00"> January 1, 2026 4:30pm </relative-time> Which today renders: last week. For earlier times it will render something like on December 1, 2025,"
Social media often misses useful shared links, prompting a curated approach that delivers three primary links plus a fourth for entertainment. URL parameters, even when they do not change page output, can negatively affect web performance; a proposed solution aims to mitigate that performance penalty. GitHub's relative-time-element web component leverages the Intl API to render localized relative dates (for example, "last week" or "on December 1, 2025") and supports multiple attributes. The component is used on GitHub, has an associated CodePen demo, and benefits from adding a title attribute so hovering reveals the full timestamp.
Read at Raymondcamden
Unable to calculate read time
[
|
]