Show HN: Tiniest Web Component
gist.github.com
gist.github.com
A) to always show the current year, apparently!
This should/could be part of a generic <app-footer) Web Component which ensures all that required is required.
We use a single <app-footer> for over 15 projects, it extracts domain namens to set the correct links.
Its value showed when we needed (basic) A/B tracking on all sites, we only had to edit this one <app-footer> file
There was some more discussion in the webkit standards but looks like the answer is still unchanged: https://github.com/WebKit/standards-positions/issues/97
If you want to dive in deep: https://stackoverflow.com/search?q=liskov
Here is Apple debating all non Liskov believers: https://lists.w3.org/Archives/Public/public-webapps/2013OctD...
*going back over 10 years to 2013, Who said Web Components was a fad*
If it's statically generated, add the year at build time. If it's server-generated and dynamic, don't do it in JS I guess? I mean, why? It has only downsides.