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

First load speed #68

Closed
5 tasks
cben opened this issue Feb 10, 2015 · 2 comments
Closed
5 tasks

First load speed #68

cben opened this issue Feb 10, 2015 · 2 comments

Comments

@cben
Copy link
Owner

cben commented Feb 10, 2015

[See also ideas on #7. But this deserves it's own tracking issue.]

WebPageTest, e.g. http://www.webpagetest.org/result/150210_D3_EYF/ has a lot of useful things to say.

  • client-side caching is bad to none?!
  • 2/3 of the weight is javascript — unminified, many separate files. Perhaps I should revisit my love for what-I-wrote-is-what-I-serve... Middleware?

Visually, the critical path is time to firepad load. Most important:

  • Check if server-side firepad reconstruction is fast enough (it could be because of cloud<->cloud network), and Ship It already.
    • Understand whether it's even possible to start any client-side JS work before server finishes </html>? If yes:
      • Experiment using the snapshot as quick preview, via firebase REST api, before I even load other JS.
  • There should be visible indication the document hasn't loaded yet.
@cben
Copy link
Owner Author

cben commented Feb 10, 2015

[also cf. https://github.com/cben/CodeMirror-MathJax/issues/14 for initial math rendering]

cben added a commit that referenced this issue May 28, 2015
I want globals like `editor` to be accessible from JS console.

This particular reordering makes firebase connection a bit later
in the code and might regress loading speed a bit (#68).
cben added a commit that referenced this issue Jun 4, 2015
On a math-heavy 100K doc, speeds up "All math rendered" from 38s to 18s!

#68, cben/CodeMirror-MathJax#14

I was doing early hookMath() and postponing renderAllMath() on the theory
"Queuing this allows text to appear before math."
But doing hookMath() before firepad load already renders all math,
and renderAllMath() does all the work again because there is no caching
(cben/CodeMirror-MathJax#15).
@cben
Copy link
Owner Author

cben commented Dec 17, 2022

With Netlify CDN and HTTP 2, I'm gonna assume "good enough" until proven otherwise.

@cben cben closed this as completed Dec 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant