-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(web): optimize response sizes for initial page load #7594
Conversation
Deploying with
|
Latest commit: |
5b8cbf0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://ac3f94b0.immich.pages.dev |
Branch Preview URL: | https://perf-web-minify.immich.pages.dev |
b7a1b2a
to
74be1cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just found this old SvelteKit issue: sveltejs/kit#5431. We used to have The |
Oof, that sucks. I'll remove the compression for now until we take a closer look |
15b7740
to
5242a0b
Compare
5242a0b
to
5b8cbf0
Compare
It seems that this project is not going to receive a commitment soon, there is this project that received a commitment 3 days ago and a year ago and he is the one who offered the PR Maybe you should keep an eye on it? |
That's the fork that the fix (expressjs/compression#183) is coming from. It was called too hacky to merge as it relies on brittle Node internals, so I don't think we want to use it. The author of the PR wants to keep support for ancient versions of Node rather than address that, which means it will probably never be merged. Unfortunately, all outside users are blocked from sending fixes, so it is likely to remain broken forever. Perhaps we should build our own compression middleware into SvelteKit or polka or something. |
There was a PR to polka that Vite copied and has been using the past couple of years. I'll see if we can't get that merged to use. See here: sveltejs/kit#9593 (comment) |
That'd be awesome! |
Description
This PR tries to optimize the initial page load and generally reduce response sizes.