I would like to run jQuery operations on Disourse topic pages from my plugin, but I cannot find a hook that fires after a topic page is displayed.
I’ve tried route:didTransition
, route:setupController
, component:didInsertElement
, adding nested Ember.run.schedule('afterRender')
and Ember.run.next()
, but they all fire before the display occurs.
(to be more precise, they fire after display when refreshing the browser, but before display when changing route thereafter).
I could go with setTimeout(1000)
, but I’m sure there’s a clean way… Anybody on this?