News for hackers. Stuff that matters.
Re:Templating in HTML by miohtama on Tuesday October 04, 2022 @07:23PM (#33088560)
If I recall correctly there are some subtle things you cannot achieve without <template>.

<img> inside <template> is not attempted to be loaded because “it presents nothing in rendering”

https://html.spec.whatwg.org/multipage/scripting.html#the-te...

Re:Templating in HTML by galaxyLogic on Wednesday October 05, 2022 @01:04AM (#33091487)
There is also lazy loading of images see https://developer.mozilla.org/en-US/docs/Web/Performance/Laz... .