Inline rendering with document.currentScript

The Quick Take
Inline rendering with document.currentScript Lean Rada describes a neat trick that takes advantage of the document.currentScript property. You can use that to drop in a tiny inline element that replaces itself when the page loads: The year is document.currentScript.replaceWith( new Date().getFullYear()) If you define a shortcut function like this: $=(...n)=>document.cur
Ground Level News gathers headlines from public news feeds. This page shows a short summary only; the full article and all rights belong to Simon Willison (LLMs).



