Giter VIP home page Giter VIP logo

Comments (9)

rolele avatar rolele commented on May 28, 2024

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):
screen shot 2017-06-22 at 10 20 05 pm

The head tag is kind of empty.

If I re-enable js, refresh and wait 1 second:
screen shot 2017-06-22 at 10 22 16 pm
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.

strues avatar strues commented on May 28, 2024

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.

rolele avatar rolele commented on May 28, 2024

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.

strues avatar strues commented on May 28, 2024

@rolele Nearly have a perfect implementation in place. Should be finished later this afternoon.
edit:
Much beter...

screen shot 2017-06-23 at 4 20 12 pm

from react-universal-boiler.

rolele avatar rolele commented on May 28, 2024

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.

rolele avatar rolele commented on May 28, 2024

Any news on this one?

from react-universal-boiler.

strues avatar strues commented on May 28, 2024

@rolele You should not have any more issues with css not loading properly when JS is disabled.

from react-universal-boiler.

otmjka avatar otmjka commented on May 28, 2024

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.

otmjka avatar otmjka commented on May 28, 2024

@strues thanks for awesome boilerplate!

from react-universal-boiler.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.