Say that I have a function that needs to execute on $(document).mousemove(). Then I decide I have another function that needs to execute on the same event. Perhaps these two functions are unrelated, so in the name of modularity, one could have two separate functions listening for $(document).mousemove().
Is this bad form? Are there performance implications?
jQuery will automatically append events to a chain, so there is no problem with having duplicate handler definitions for the same event. If you can combine two handler definitions into one reasonably then there’s certainly nothing wrong with that approach, but there’s little explicit value in doing so other than, perhaps, readability.