I posted a suggestion in that thread that may get around your issue.
However, “on map load / unload” events would be much appreciated here too.