Hrm... Maybe as with ``on_close`` we can do a ``close_when`` which defaults to ``None`` (don't auto-close ever), can be set to a constant ``CHANGE`` (similar to the ``REFRESH`` constant for ``on_close``) or a URL as string. @FinalAngel what do you think?