Skip to content

Worker boot: Parallelize WP.zip and PHP.wasm download - #1668

Closed
adamziel wants to merge 1 commit into
trunkfrom
worker-boot-fetch-sequence
Closed

Worker boot: Parallelize WP.zip and PHP.wasm download#1668
adamziel wants to merge 1 commit into
trunkfrom
worker-boot-fetch-sequence

Conversation

@adamziel

@adamziel adamziel commented Aug 1, 2024

Copy link
Copy Markdown
Collaborator

#1390 introduced a regression in the asset loading flow.
WordPress were downloaded in parallel. After that PR,
WordPress.zip download was awaited before the PHP.wasm download
would start. In here, we're removing the extra await statements
to parallelize all the downloads.

I'm not yet certain whether it solves the progress bar issue.

This is a stopgap PR until we can clean up the worker-thread.ts boot flow and control the boot sequence from remote.html. Then, API calls like mountOPFSDir() or bootPHP() would become explicit.

Related to #1667.

Testing instructions

      WordPress were downloaded in parallel. After that PR,
      WordPress.zip download was awaited before the PHP.wasm download
      would start. In here, we're removing the extra `await` statements
      to parallelize all the downloads.

This is a stopgap PR until we can clean up the worker-thread.ts boot
flow and control the boot sequence from remote.html. Then, API calls
like `mountOPFSDir()` or `bootPHP()` would become explicit.

 ## Testing instructions

* Go to http://localhost:5400/website-server/?wp=http://localhost:5400/plugin-proxy.php?url=https://wordpress.org/wordpress-6.6.1.zip
* In network devtools, confirm that PHP was downloaded without waiting
  for wordpress-6.6.1.zip
@adamziel adamziel added [Type] Bug An existing feature does not function as intended [Type] UI / UX / User Experience [Aspect] Website labels Aug 1, 2024
@adamziel

adamziel commented Aug 2, 2024

Copy link
Copy Markdown
Collaborator Author

Superseded by #1669

@adamziel adamziel closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Aspect] Website [Type] Bug An existing feature does not function as intended [Type] UI / UX / User Experience

1 participant