News for hackers. Stuff that matters.
Re:Show HN: Map of active customers for landing page by eerimoq on Monday April 05, 2021 @08:15AM (#26698002)
The CPU usage sky rockets when showing the world SVG in my Chromium browser. Is there any trick to make the animated SVG be less CPU intensive?
Re:Show HN: Map of active customers for landing page by ziolko on Monday April 05, 2021 @03:32PM (#26703519)
Right, the animated SVG can be demanding for the browser. I will try to solve this in the upcoming days :)
Re:Show HN: Map of active customers for landing page by eerimoq on Tuesday April 06, 2021 @02:22AM (#26708595)
Thanks!

I use a slightly modified version of your beautiful map on my website (https://mys-lang.org/statistics.html). No animations and the green circles are not quite aligned to the hexagons. Works well enough for my use case anyway.

Re:Show HN: Map of active customers for landing page by lxe on Sunday April 04, 2021 @10:53PM (#26694844)
Is this a live-streaming (forever-loading) SVG? Neato!
Re:Show HN: Map of active customers for landing page by ziolko on Monday April 05, 2021 @02:03AM (#26695785)
I considered this, but it doesn't add much value for my primary use case (landing page).

While doing this I've learned that one can embed a <script> tag into SVG so this can implemented this way. Scripts run if the SVG is added to the page with <embed> or <object> tag, but not with the <img> tag. This opens a possibility of "graceful degradation" where the SVG uses live streaming where possible with a static fallback.

Re:Show HN: Map of active customers for landing page by Gys on Monday April 05, 2021 @05:50AM (#26697063)
Looks very cool and I appreciate the refs to previous work, very interesting.

On my Mabook Pro 2019 the github page immediately takes a lot of cpu time. In whatever browser I am using the cpu cooling kicks in strongly. Also, on Safari the looks are not as good as in Firefox or Chrome.

Re:Show HN: Map of active customers for landing page by edoceo on Sunday April 04, 2021 @06:18PM (#26693321)
It's cool but why the dependency on Vercel account for what is basically js/redis/svg?
Re:Show HN: Map of active customers for landing page by eliseumds on Sunday April 04, 2021 @06:42PM (#26693469)
Well, the server-side part of it needs to run somewhere. Looks pretty good to me, very straightforward.
Re:Show HN: Map of active customers for landing page by ziolko on Monday April 05, 2021 @02:08AM (#26695812)
My primary goal was to get this up and running for my website. I really enjoyed the end effect so decided to open-source it as is.
Re:Show HN: Map of active customers for landing page by leesalminen on Sunday April 04, 2021 @09:55PM (#26694567)
I had a customer ask for something similar a while back and ended up building something pretty close to this with Redis. I like your design more with the hexagons.
Re:Show HN: Map of active customers for landing page by friendofafriend on Sunday April 04, 2021 @08:54PM (#26694288)
Nice work. I appreciate the relative simplicity of the integration & look forward to using this soon.

Edit: Why the downvote?