plugin load sequence
-
@julian said in plugin load sequence:
@yariplus said in plugin load sequence:
@pichalite That seems to me to be the case.
However, the code does not agree -- they are run in series.
They do time out for performance reasons, however. e.g. a static hook will continue with the next listener if the current one takes longer than 2 seconds.
That reference is for
filter
hooks, isn't it? @yariplus and @pichalite are talking aboutstatic
hooks (e.g.static:app.load
). For static hooks @yariplus already referenced the relevant line to prove his point.
With that in mind I don't see any obvious solution/hook for that purpose, nor any reasonable use-case. -
Aah yes... static hooks are called asynchronously for performance reasons. Thanks for pointing that out @frissdiegurke, my apologies for missing your link in the earlier post @yariplus
We could change it to
eachSeries
... not that big a deal, to be honest. -
I'm fine with it being
each
. But that's really a separate issue. The app.load hook is not where we should be modifying templates.