-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Defer loading Babel until it is needed #2
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
Comments
Is it necessary to use a worker or could it be achieved through XHR + eval? |
Worker is totally not necessary (but a nice touch). I built a non-worker based version for Babel REPL initially. (It's there in the Git history if you're curious.) |
Okay, I'll look into it and then attempt to fix the issue. |
Okay. I've tagged this as "in-progress" then. Please let me know if you decide not to submit a PR and I'll remove that label so someone else can claim the task. |
@bvaughn should |
Could be pretty cool to just-in-time load Algolia too, yeah. 😄 I plan to remove it in favor of a client-side search solution like js-worker-search at some point in the future so I hadn't considered it much. That being said, it might take me a long time to get to that so... |
Check out issue #98 for my thoughts on that if you're interested |
Add "Using Props Other Than Render" to Render Props
Create "Accessing refs" section above specific examples
* Added page translation: basics -> hello world * hello-world: improvements * hello-world: fixes * hello-world: improvements * Update content/docs/hello-world.md Typo correction Co-Authored-By: ModPhoenix <[email protected]> * Update content/docs/hello-world.md Improvement Co-Authored-By: ModPhoenix <[email protected]> * Improved translation
* Update 2019-08-15-new-react-devtools.md * Apply suggestions from code review Co-Authored-By: Júlio Campos <[email protected]> * Apply suggestions from code review reactjs#2 Co-Authored-By: Jhon Mike <[email protected]>
* Added documentation for React.createFactory * Update beta/src/content/apis/react/createFactory.md Co-authored-by: Strek <[email protected]> * minor editorial updates (#2) * Update createFactory.md * Update createFactory.md * edits Co-authored-by: Strek <[email protected]> Co-authored-by: Holly Sweeney <[email protected]> Co-authored-by: Dan Abramov <[email protected]>
We currently load Babel via CDN (which is nice) but we load it in the
<head>
of the page (which is not so nice). We should only load it on pages that actually use it (eg pages that use theCodeEditor
).Check out the Babel website's REPL for an example of similar deferred loading.
The text was updated successfully, but these errors were encountered: