Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[Experiment] [DO NOT MERGE] Improve load performance of App WebWorkers #808
Quick and dirty code to try a couple things out:
Of all of them, it looks like the last one "improves" the experience the most, by hiding some of the jank to after the loader's finished animating. All the other tricks made very little difference in the jank :(.
No matter the attempt, these giant spikes stay :(. Also not sure why the profiler reports them as part of "network". This what the app currently looks like on load (without these changes):
The big "data:uri" network blobs seem to be causing some trouble; for reference, the scripts have already been downloaded from network previously. Before, when we were passing blobURIs into the WebWorkers, this would take ~30ms (vs. up to 300ms for Finance's script).
Initializing the WebWorker itself doesn't appear to cause much of a problem, it usually finishes within 100ms.