-
Notifications
You must be signed in to change notification settings - Fork 8
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
Subdomain loads require 30MiB download every time #93
Comments
* refactor: remove unused helia andu se verified fetch * chore: remove empty line * fix: load config iframe using a hash fragment fixes #88 * fix: load default config initially * chore: fix linting errors * chore: remove unused deps * chore: re-add needed @helia/ipns dependency * fix: set verifiedFetch when sw is activated * chore: remove lib/heliaFetch and cleanup sw.ts (#95) * fix: config loading on subdomains waits for updated config (#94) * fix: config loading on subdomains waits for updated config * fix: remove event.waitUtil inside channel.onmessagefrom the activate event is fired when the service worker is first activated, and then the channel.onmessagefrom event listener is set up. by the time the channel receives any messages, the event passed to activate will be done, and waitUntil has no effect (and throws an error) * fix: service worker handles being disposed of * fix: preload request from redirect page is handled by sw * chore: better trace logging for config updates --------- Co-authored-by: Daniel N <2color@users.noreply.github.com> Co-authored-by: Russell Dempsey <1173416+SgtPooki@users.noreply.github.com>
another potential reduction in downloaded resources for subdomains: split all required assets for redirect page into a separate chunk, and update app.tsx to use dynamic imports for different pages |
do we have agreed-upon action items for this? If my above proposal is appropriate, then actions should be roughly like so:
|
@lidel thoughts here? should we spend any time working on dynamic loading or are we good as is since resources should be cached from the hosted domain? |
The
./dist
without.gz
files is ~30MiB.This means every website that is loaded via subdomain gateway will re-download the same payload before SW can be initialized. This adds 30MiB cost to every website's initial load.
We should reduce the size of subdomain load to minimum to initialize worker. Ideas welcome!
Ideas
The text was updated successfully, but these errors were encountered: