←back to thread

217 points palmfacehn | 2 comments | | HN request time: 0s | source
Show context
nozzlegear ◴[] No.45107502[source]
I've been using template elements a lot recently to render products on my wife's photography blog. The product data gets loaded from a headless MedusaJS instance, plugged into a template that matches her blog's theme, and then dropped into the page. I specifically wanted to avoid reaching for something like React since the page load is already pretty heavy with the size of her images. Template's been pretty easy to use in that respect.
replies(1): >>45113049 #
1. nine_k ◴[] No.45113049[source]
Frankly, preact is 4 kB, should be peanuts comparing to any image.
replies(1): >>45123095 #
2. nozzlegear ◴[] No.45123095[source]
I hadn't considered Preact, I always forget about it honestly. That could be a good compromise. Cheers!