logoalt Hacker News

zelphirkalttoday at 4:08 PM1 replyview on HN

Yep, and for such cases it is usually very easy to make it work properly, if only a web developer put a little thought to it. We have most or all of the tools we need in HTML and APIs to make it work regardless. Like for example for the happy customer counter one could easily have a noscript fallback, that uses the number one already needs to retrieve to show the animation, but puts it there immediately. Then, iff JS gets executed, one can still animate the shit out of it.

It is part of what distinguishes actually good web devs from move fast and break everything kind of people.


Replies

efilifetoday at 4:19 PM

The noscript would not be needed at all. The value could be the real one by default, then in js set to 0 and incremented

show 3 replies