publishPane DOMContentLoaded scope fix