Skip to content
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

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

Closed
wants to merge 1 commit into from

Conversation

adamziel
Copy link
Collaborator

@adamziel adamziel commented Aug 1, 2024

#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
Copy link
Collaborator Author

adamziel commented Aug 2, 2024

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
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant