TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Learnings from Client-side and Server-side rendering in Backbone.js

17 pointsby mrjoelkempover 11 years ago

4 comments

jashkenasover 11 years ago
Nice writeup. But a large part of the main point seems to be surprise that client-side rendering isn&#x27;t going to be indexed by search engines:<p><pre><code> &gt; It occurred to me that the hype around client-side rendered apps &gt; is still alive and kicking. It’s not the first time I’ve heard &gt; server-side rendering negatively referred to as an “old school” technique. and ... &gt; Chalk that up to my ignorance, believing the client-side rendered &gt; app-of-the-future hype, and not caring about SEO until the organic &gt; traffic numbers came in. </code></pre> This should <i>not</i> be a surprise. Obviously, if you only render content on the client, then search engines aren&#x27;t going to see any of it. Client-side-only-rendered applications should only be for private pages, user&#x27;s workspaces, and web <i>applications</i> — pages that a search engine will never see, regardless.
评论 #6747007 未加载
评论 #6747024 未加载
评论 #6748292 未加载
anonyfoxover 11 years ago
How about just sniff the user-agent and deliver perfectly rendered views&#x2F;fragments of your SPA through a serverside PhantomJS process to crawlers?<p>If you used backbone routing properly this shouldn&#x27;t be a problem.<p>Or, use one of the &quot;Full-Stack&quot; Frameworks for Javascript which merge the client and the server almost completely. Derby.js comes to mind, maybe even meteor.<p>[edit]: you mentioned PhantomJS in your summary, didn&#x27;t see it. But you don&#x27;t mention why you didn&#x27;t use it.
评论 #6746546 未加载
drinchevover 11 years ago
I&#x27;m a bit afraid of this. Is it so hard for Google to run PhantomJS and crawl JS sites. If google reads CSS display:none correctly why it&#x27;s so hard to make the JS crawling work... That&#x27;s madness. This SEO ( Google ) stuff is making decisions for frameworks and tech-stacks. That&#x27;s bad, it has to be the other way around. I don&#x27;t want to make websites for Google I want to make them for the users.
评论 #6746909 未加载
评论 #6746988 未加载
ulisesrmzrocheover 11 years ago
The first con needs a bigger cavat because image size and number of requests play a huge part in browser rendering. This is probably why the mobile app was so much slower than the desktop app. The small minified js file that contains your app has little performance hit.