perf: polish the web UI and shrink cold start - #131
Merged
Conversation
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #131 +/- ##
==========================================
+ Coverage 95.41% 95.56% +0.14%
==========================================
Files 18 18
Lines 1200 1285 +85
==========================================
+ Hits 1145 1228 +83
- Misses 55 57 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
for more information, see https://pre-commit.ci
Agent: ChatGPT Model: GPT-5.6 Sol
Agent: ChatGPT Model: GPT-5.6 Sol
njzjz
approved these changes
Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
requests,urllib3,certifi,charset-normalizer, andidnafrom the browser-only bundle by keeping nativerequestsimports off the Emscripten path< 1,000,000 bytecompressed Web bundle budget in CICold-start optimization
The currently deployed Pages bundle is 1,474,423 bytes. CI builds the new bundle at 845,131 bytes (about 825 KiB), a 42.7% reduction. The browser networking path uses
pyfetch, so the Requests stack in the old archive was unnecessary. This PR reduces the locked browser dependency set topyiso4,pylatexenc, andunidecode, while native Python continues to use Requests normally.The Worker also no longer waits for
loadPyodide()to finish before requesting the local bundle. The bundle and Pyodide runtime start downloading together, and HTML preloads the bundle as early as possible. Streamed reads report actual downloaded bytes in the progress UI.Validation
loadPyodideAgent: ChatGPT
Model: GPT-5.6 Sol