Only send panel show/hide events after the panel's document is ready.

This waits to send the initial show event until the content document is ready.
if you create a second panel and show that, and wait for the 'show' event on this second panel, then that should be faster than waiting 1s.