When a user performs a certain action (typing) I run a function that applies a specific styling to that user in a list of 100s of users. As the user continues to type this funct
Need to see some code to be sure, but it seems you could use setTimeout() (see reference here) with each function call, clearing the old timeout with clearTimeout() (see reference here) at the beginning of the function.