Inline rendering with document.currentScript
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(…
Annons
Annons
Source: Simon Willison — Published — Category: Tools
More from Simon Willison today
web-edit 0.1a2 20h ago
Annons
Annons