revert to earlier implementation of registerContentLoadedHook