Repository navigation
There can be only one API layer - #2080
Merged
Merged
Conversation
Enterprise endpoints will include a leading path, which `new URL...` will strip
Contributor
Author
|
This is ready 🙏 Note that the |
This was referenced Jun 22, 2017
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.
I was looking into our bundle size and noticed that Octokat and its dependencies add quite a bit of bulk to our bundle. Octokat was extremely helpful in getting off the ground, but now it's time for us to fly on our own. Given that we already implement some of our own API requests, and issues like #2017, I think we should standardize on doing our own API requests.
The advantages of this:
More concretely on (1), our renderer bundle size on
master:Our renderer bundle size on this branch:
That's a drop of ~535kb 🤘 This directly translates into faster startups since it's less JS for V8 to parse at launch.
Timings on
masterafter a few launches:Timings on this branch after a few launches:
Fixes #2017
Fixes #2064
Fixes #963
Supersedes #1937
To test: