How can I show a loading indicator in Kobweb while...
# kobweb
m
How can I show a loading indicator in Kobweb while the page is loading, ensuring that the content appears only after the page has fully loaded?
s
to specify what you mean with "while the page is loading", do you really mean while the html, css and js are downloaded and interpreted by the browser? Or is it some content you fetch from a server separately?
m
this is my static website so. like page is not load so loading text or image showing after page load successfully after that loading text or image gone
s
Hey, I'm sorry, but I do not understand your message. Maybe you can use a translator to word and describe your problem?
m

https://youtu.be/q76TexbMXJg?si=mDO5-UGvq0IHfDRW

Just video result it see it
How do to this in kobweb
I hope you understand
s
just translate the css to kobweb properties https://opletter.github.io/css2kobweb/
m
Yes I know this but some Javascript it for check loading and loaded how can do kobweb
s
you can use a very similar api with kotlin/js. all these objects and functions like window.addEventListener exist
👍 1
m
Ok I understand
Thanks I will try it