Comments (9)
It seems that the SSR is not doing all the work on the server-side.
Usually I can disable js on the client with SSR app and the app should render perfectly.
Here this is the result of disabling js (top right of the screenshot):
The head tag is kind of empty.
If I re-enable js, refresh and wait 1 second:
Now head include the inline style and the meta.
Do you know how to get the full SSR behavior with with boilerplate?
from react-universal-boiler.
I see what you're saying. I'll need to play around with styled-components some more. What's going on is the stylesheet generated by styled-components isn't populating in the head with JS disabled.
from react-universal-boiler.
but this work should be done on the ssr side right? yeah ssr make it a little more complicated.
I found this boilerplate that does exactly that on the redux-ssr branch:
https://github.com/diegohaz/arc
It looks very nice.
from react-universal-boiler.
@rolele Nearly have a perfect implementation in place. Should be finished later this afternoon.
edit:
Much beter...
from react-universal-boiler.
that is a great news. I like this starter very much. and I like to know that it is the basis of your boldr repo ( so it is a proof that it scales) thanks for the good work. I will test that and study your commit as soon as it is done.
from react-universal-boiler.
Any news on this one?
from react-universal-boiler.
@rolele You should not have any more issues with css not loading properly when JS is disabled.
from react-universal-boiler.
There is PR https://github.com/strues/react-universal-boiler/pull/18 where I've shown how to fix css jumping issue.
from react-universal-boiler.
@strues thanks for awesome boilerplate!
from react-universal-boiler.
Related Issues (14)
- builld failing, HOT 1
- work with happypack and webpack 1?
- I can't get working hmr HOT 1
- performance question
- error building for production HOT 2
- Comparison with react-universally HOT 2
- `yarn dev` fail HOT 2
- redux-logger doesnt seems to work HOT 2
- Warning: React does not recognize the `staticContext` prop on a DOM element. HOT 1
- Styled components css Is not generated on the server HOT 4
- FLUSH CHUNKS, Incorrect naming HOT 1
- Build Fails after adding few client libs [material-ui, redux-form, wallop, react-tap-event-plugin] HOT 8
- Deployment help (Heroku) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-universal-boiler.