Mastodon Feed: Post

Mastodon Feed

Reblogged by slightlyoff@toot.cafe ("Alex Russell"):
nolan@toot.cafe ("Nolan") wrote:

It saddens me a bit though that browsers have to go to heroic efforts to improve things like input responsiveness. Usually there are things the web developer can do to help, but they rarely bother.

For instance: debounce your input handlers! The typing indicator on Pinafore shows how close you are to the 500 character limit, but it doesn't check for every character you type. It checks lazily with requestIdleCallback, which keeps responsiveness smooth even if you type fast on a slow machine.