This can be done by calling guiders.initGuider from within the callback function, rather than using onShow.
The onShow way would keep working, but become deprecated.
This can be done by calling guiders.initGuider from within the callback function, rather than using onShow.
The onShow way would keep working, but become deprecated.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Use async API calls for wikitext parsing | mediawiki/extensions/GuidedTour | master | +377 -182 | |
mediawiki.api.parse: Allow parsing pages | mediawiki/core | master | +29 -7 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T90327 Remove use of synchronous XMLHttpRequest (deprecated) | |||
Resolved | • Mattflaschen-WMF | T46925 GuidedTour: Remove use of sync XHR - use mw.Api and async for parsing |
There are also other interim approaches, such as allowing onShow to return a promise.
There's also a transition idea where parseDescription and getPageAsDescription are deprecated and used as markers to change the behavior (e.g. it can do an async call then initialize the guider when the async call completes).
Change 276660 had a related patch set uploaded (by Mattflaschen):
mediawiki.api.parse: Allow parsing pages
Change 276689 had a related patch set uploaded (by Mattflaschen):
WIP: Use async API calls for wikitext parsing