-
Notifications
You must be signed in to change notification settings - Fork 131
FOUC on SSR #38
Comments
in development or in production with SSR? |
@TheDolo , I found error in SSR, but can't push fix for it right now, would be fixed soon (approximately: one day) |
@TheDolo SSR was rewritten, should be fixed now |
@TheDolo FOUC caused by Semantic.UI. SUI styles ~540KB - before they are downloaded only styled-components styles are active. I'm trying to follow Shell pattern, but not sure is it so easily possible.
UPD: Probably, I need to say that this behaviour likely to occurs only on a first load = Before the app will be cached by ServiceWorkers. The main reason of FOUC - server can't render SUI styles. |
Wonderful, thank you for the explanation! |
@TheDolo probably problem would be solved after #49 will be solved. There wouldn't be unnecessary re-rendering. But still, FOUC might be because of the huge SUI bundle. Also, I'm currently experimenting with separation of SUI bundle for faster content download with HTTP2. |
@TheDolo do you still get FOUC on page loading? |
I'll have to refactor your current updates in, I'm a few days behind your commits. I can't get your demo to show it, so thats good. Will follow up in a day or two. Still having problems with every page refresh going back to auth page since your new refactor only in SSR + using my own endpoints for auth. It worked before your refactor and my endpoints have not changed, so I'm assuming it's something with the auth wrapper. But I don't see any FOUC when shift refresh even if it takes me back to auth! |
Shifting to
Dev will be merged into master soon when I'll finish docs and README.md. @TheDolo waiting for you to adopt new features. You're the most active user of this starter, probably 👍 |
Yup, FOUC after deploying to a live server. Will get your new updates in a few days and report back! I've gotten good at swapping out all code except my custom routes, reducers, and containers (and some minor code there). It's actually pretty painless! Could easily see a CLI! |
CLI will be soon, sorry, have a lot of work on docs. |
Heh yea docs for sure first. At this point I understand nearly all your code, but that did take a while! I love what you did with webpack_config vs the last refactor! +2000 points for the GA/Sentry integrations. I've still kept the API server separate from the SSR server! But it would be nice to mount/remount the API calls ON server instead of browser. |
docs folder. |
Np! I love what you did with webpack_config this time around versus the single folder! Much better than before! I was actually going to request a GA integration, it's almost always a requirement, and the Sentry was just the topping on the sundae. What other major services are there? Minds blank! |
Hah, thanks :) I'm currently working on the styleguide for the folder structure. I got some problems in a similar project, where my friend and I used a lot of relative imports (e.g. So, maybe this doc about avoiding circular dependencies will be added too, I've never faced a similar guide for frontend before. Of course, there are similar guides for other languages/frameworks |
Style guide is perfect, I was a bit confused on how to use scss in the project properly. Plugs: Further integration of GA into your route system would be nice! And maybe official 'guest' routes tags (x2 please), and the sidebar only shows certain routes if guest. And maybe.... :D |
I'm submitting a ...
Feature Request:
Bug Report:
Edit: Seems some imported libraries will cause FOUC of auth components.
The text was updated successfully, but these errors were encountered: