maxence-charriere / go-app

A package to build progressive web apps with Go programming language and WebAssembly.

Home Page:https://go-app.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-app can be served from Gitlab Pages, how about pre-compressed wasm?

suntong opened this issue · comments

As per
https://github.com/orgs/community/discussions/21655#discussioncomment-3234045

you can serve pre-compressed brotli assets from Gitlab Pages

but his prepared demo site is gone.

Can someone try to make brotli / gzip pre-compressed wasm works in Gitlab Pages please?

Reposting from https://stackoverflow.com/a/34636569/2125837 --

Github pages is already gziping html, css, js, json,... It's useless to try to do better by gziping json yourself.

A 1.3M json is sent as 357KB one by github pages. See here and click on "load json" link.

Proof:

image

However, I'm just unable to verify if wasm get gzipped on-the-fly:

image

Oh, it is,

image