So Matt's idea of what he'd like to do has finally sunk in. Isomorphism (or maybe we should call it automorphism?) together with Google's bot ability to explicitly request server-rendered pages from SPA URLs (during crawling) means that you can serve pre-rendered pages to the bot from one isomorphic app while users get client-rendered pages
The same exception we make for Google bot can be made for the first page as well. On Wed, May 20, 2015 at 10:17 AM, Matthew Phillips < [email protected]> wrote: > For me SEO isn't the priority, user experience is. SSR eliminates the > flash of no-content you traditionally get from SPAs. > > > On Wed, May 20, 2015, at 11:55 AM, Marc Fawzi wrote: > > So if SEO is the overriding priority then u could have a proxy in front > that looks for the _escaped_fragment thing in the get request and route all > those to a bot-dedicated nodejs/express app that serves pre-rendered page > content. This is based on the Google scheme. > > Sent from my iPhone > > On May 20, 2015, at 6:57 AM, Marc Fawzi <[email protected]> wrote: > > > Matt, > > I forgot to mention, if SEO is the priority and you enjoy building SPAs in > Reagent, Google has had a way (for many years now) to crawl client-side JS > generated pages where you use #! in your urls (or use the fragment meta > tag) to tell google that to ask the server for the server-rendered content > of that page (assuming it's not passworded/no session) s you don't actually > serve pre-rendered pages to users, just to the bot, which would result in > less load on your server. > > Just another idea (may not be as terrible as the first attempt!) > > :) > > Reference: > https://developers.google.com/webmasters/ajax-crawling/docs/getting-started > > > > > > > On Tue, May 19, 2015 at 3:28 PM, Marc Fawzi <[email protected]> wrote: > > yup that was a terrible idea from the era before isomorphism was > discovered ... I'm just getting into the whole isomorphic thing... > > the issues you stated should all be solvable or if not then reduced to a > set of core obstacles so we can understand the actual limitations of this > approach > > > On Tue, May 19, 2015 at 3:05 PM, Matt Ho <[email protected]> wrote: > > Like I said in the other post, I'm not really keen on using something > besides reagent to render pages. Having two ways to render a page seems > like misery waiting to happen. > > Also, having only the home page renderable doesn't give me the SEO > benefits I want. I need the detail pages to be crawl-able as well, not > just the home page. > > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > > > > > > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > > > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
