njbotkin / reaction-ssr-preview Goto Github PK
View Code? Open in Web Editor NEWSuper simple SSR for Reaction Commerce
Super simple SSR for Reaction Commerce
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.
Potential renderers to support:
To other plugins within Reaction. So they can purge the cache when necessary.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.