TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How do you decide whether to use a SPA or not?

2 点作者 Matachines超过 8 年前
Assuming you can make the choice, how do you decide if you want a single-page application or a good ol&#x27; server rendered sprinkled with JavaScript one?<p>I&#x27;ve had an idea for a project I want to build for a while. It&#x27;s pretty CRUD-y but the resource the users have is a &quot;timer&quot;, so to speak. Basically, a runnable recipe that counts down with time and shows which ingredients to put in at which time.<p>Everything can be server-rendered except the actual timer, which is what makes the choice hard for me (I&#x27;m fairly inexperienced and only been forced to do SPAs at work).<p>Assuming I go server-renderd, what should I use for the JS such that the timers are just &quot;components&quot; that are easy to render but don&#x27;t take over the page like a full SPA would?<p>Thanks.

1 comment

azeirah超过 8 年前
&gt; what should I use for the JS such that the timers are just &quot;components&quot; that are easy to render but don&#x27;t take over the page like a full SPA would?<p>Bake your site with plain JS, perhaps throw in some jQuery sprinkles.