Page MenuHomePhabricator

Create hook when entity view has finished rendering
Closed, ResolvedPublic

Description

There should be a hook for when the EntityView has finished rendering (code is in repo/resources/wikibase.ui.entityViewInit.js, add mw.hook(…).fire() shortly after the createEntityView call in L359). (Not everything might actually be done by this point – some things are asynchronous – but the main rendering should be good enough for now.)

We might want to add this hook to T169775: Declare Wikibase JavaScript hooks stable as well.

Event Timeline

Change 419218 had a related patch set uploaded (by Lucas Werkmeister (WMDE); owner: Lucas Werkmeister (WMDE)):
[mediawiki/extensions/Wikibase@master] Add hook after entityViewInit is done

https://gerrit.wikimedia.org/r/419218

Change 419218 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add hook after entityViewInit is done

https://gerrit.wikimedia.org/r/419218

Lucas_Werkmeister_WMDE closed this task as Resolved.Mar 14 2018, 12:51 PM
Lucas_Werkmeister_WMDE claimed this task.
Lucas_Werkmeister_WMDE moved this task from Blocked to Done on the Wikidata-Ministry-Of-Magic board.