Skip to content

Instantly share code, notes, and snippets.

@karololszacki
Last active June 2, 2017 20:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karololszacki/f796381c6d9949191d623d3d99c9cf86 to your computer and use it in GitHub Desktop.
Save karololszacki/f796381c6d9949191d623d3d99c9cf86 to your computer and use it in GitHub Desktop.
Some optimisations: - a timeout trick so we don't fire same functions too often (like for keyUp event or updateClasses); - simpler search (indexOf where we had regex); - jQuery animations replaced with velocity, not giving that much improvement; I would get rid of "updateClasses" and the animations altogether
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment