Hi all, my first website with compose is here: <ht...
# compose-web
s
Hi all, my first website with compose is here: https://www.stefanomilani.net , let me know if you like it, thanks!
c
1. UI reminds me of 2000's MySpace pages 😅 2. You are loading the same font a couple of times 3. Initial loading is bad - you should
Content-Encode: gzip
the
.wasm
file as well.
also you font loading happens on each of the button clicks.
s
Thanks Christian, can you help me to better understand what and where I need to use Content-Encode: gzip and the wasm file please? I don't know about these type
c
depending on the server engine you use you can set HTTP Compression. looks like it’s enabled for the defaults like
.html
,
css
and
js
. you’ll need to enable it for
.wasm
as well. https://en.wikipedia.org/wiki/HTTP_compression
s
Thanks, it is a new features that I don't know, my experience in building web site is so far from professional web maker, I'm learning jetpack compose with kotlin and I have discovered the opportunity to use multiplatform to create website, interesting feature for me. So I will try to investigate about your precious tips. 👍
👍🏼 1
b
is there any way to have the mouse pointer be a hand when hovering buttons?
s
I dont't know, really...
m
Enabling compression might be as easy as described here but of course it depends on the infrastructure your provider is using.
s
Thank you Michael, actually i thought something was missing in the .htaccess file, now do you think i should also add the wasm type?
👍🏼 1
m
I did but did not yet have the time to test it.
s
It works for me now, all gzip is content-encoding adding the right declarations to the .htaccess
👍 1
1