luci-base: don't render until luci-loaded is done
authorJames Haggerty <[email protected]>
Mon, 8 Apr 2024 02:37:42 +0000 (02:37 +0000)
committerPaul Donald <[email protected]>
Tue, 7 Oct 2025 14:16:51 +0000 (16:16 +0200)
commita2fce95248a260d9471efbff94ad0cde7a90700d
tree99c76826ef2e99af0bbf13f7e2db10c6dd607628
parent9924970dce4144fac973ebbee55b7b6aa548e696
luci-base: don't render until luci-loaded is done

Because the setupDOM/initDOM methods do strange things related
to the old lua server rendered templates
(like remove all the elements currently hidden by dependencies...),
we want to be sure that these have finished before the view
itself renders.

This also ensures that any caching (e.g. from probeSystemFeatures)
is finished before the view render.

This feels like a hacky fix, but it's not clear to me what the best
one is.

Signed-off-by: James Haggerty <[email protected]>
modules/luci-base/htdocs/luci-static/resources/luci.js