I’ll take a server-side snippet over something client-side any day of the week.
I’ll take the opposite view, and say “offload it to the client” whenever possible. It’s simply better for performance. Making
welcome back, Alen! Hope you enjoyed your trip