issues
search
Notifiarr
/
notifiarr
Client for Notifiarr.com
https://notifiarr.com
MIT License
494
stars
28
forks
source link
Converts bindata usage to embed usage, gzip all http responses.
#775
Closed
davidnewhall
closed
1 month ago
davidnewhall
commented
1 month ago
Removes bindata binary usage in favor of embed.
Using embed alone caused the binary to grow by 7+MB.
So I found a way to pre-compress all of the embedded files.
Javascript libraries are re-committed compressed using
zopfli
.
The GitHub and Docker builds pre-compress custom templates, js and css files before the build.
The internal code now handles all of these assets with or without compression (
.gz
extension).
Bonus:
The js and css assets are now served to http clients gzipped.
I also added a library to compress all the html and api responses.
The binary was 300kb smaller.
Then I added brotli support and it went up by a megabyte. whomp whomp.
.gz
extension).Bonus: