Shiny:visualchange Javascript Event

The shiny:visualchange Javascript Event is triggered when an output is resized, hidden, or shown. I'm able to use this successfully, say, for when the user changes tabs within an app. The issue is that there's about a one second delay between when the user selects a new tab and when the event is triggered. Is there a better way to handle this?