Show Page Loading Spinner Until Javascript Has Loaded?
Is it possible to setup a keen theme to immediately show a page-loader (modal spinner), so that I can hide it later once my Javascript has finished initialising?
Using KTApp.showPageLoading() isn't suitable because it isn't guaranteed to run immediately.
Are there any classes or attributes I can add to the page-loader (or body tag or whatever) to cause it to be immediately open (and stay open) such that I can then hide it later using KTApp.hidePageLoading() once the page is ready for use?
Basically I'm looking to prevent slower loading pages from being interactive before they're ready, with some kind of loading indicator.
Replies (1)
Hi,
Please check the initial page loading option:
https://preview.keenthemes.com/html/keen/docs/base/page-loading#initial
This should be what you looking for.
Regards,
Sean