Giter VIP home page Giter VIP logo

reaction-ssr-preview's People

Contributors

njbotkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

reaction-ssr-preview's Issues

Smooth out preview replacement

Right now the preview watches for "#react-root" to be added to the DOM, and then waits for 2 seconds or so before swapping out the preview with the real deal. This vulgar approximation leads to flashes and other jank.

Reaction ostensibly sets window.prerenderReady to true when the page is ready to be rendered, but it would seem only for the product grid? Research and testing needed. Something like this is probably the best thing for reaction-ssr-preview to watch for.

Another idea for smoothing things out is to fade the transition. Not sure if smaller devices could handle it.

Decouple renderer

Potential renderers to support:

  • prerender.io
  • phantomjs
  • independently configured local prerender instance

Expose cache API

To other plugins within Reaction. So they can purge the cache when necessary.

Serve flat HTML to search engines

Needs to check the user-agent, and if the user is a search engine, skip the spinner and skip injecting the bundles. Just serve the raw HTML cache.

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.