-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Load Assets Faster ! #232
Comments
@jaredpalmer what's your idea? |
Just wanna clarify, I am in the process of optimizing speed for my |
@s123121 in order to have a better TTFB you can use cache for HTTP requests in getInitalProps method or cache the server response with a package called read this too: Rendering On The Web this issue is not about code execution performance. it's about making js and CSS files downloaded faster to get executed later. |
nobody helped and I learned many new things, check #237. |
MERGED 🎈 |
Feature, And need some Help!
Current Behavior
After.js only send the main CSS and js files from server then on browser at ensureReady method it tries to fetch javascript and CSS files for the current code spilled page. it's too slow (even Google PageSpeed Insights warns about it)
Desired Behavior
Send all CSS and JS needed for the current route from the server.
Suggested Solutions
I maid a little library that fixes this problem but I'm not sure about new routes config file, it's little complicated and it's bad for DX (or maybe it's not, let me know), I need some help about routes and this, more information on afterjs-assets repo, if you think it's ok i can write tests and make PR.
you can install and use the package from npm registry till the day PR get merged.
The text was updated successfully, but these errors were encountered: