Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Also, as a JS developer, even if you want to auto-update the end year to the current one, why would you do that on the client? To make the layout shift? Or to display (c) 2024-2038 on clients with wrong date settings?

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: