Re:How SoundCloud built its new single-page main website usi...
by tocomment on Thursday June 14, 2012 @09:15AM
(#4111160)
So when does it make sense to make a single page web application? Are there any guidelines you folks like to follow?
[ Parent
| on HN ]
Re:How SoundCloud built its new single-page main website usi...
by swah on Thursday June 14, 2012 @09:23AM
(#4111196)
Wikipedia Gmail
<------------------------------------->
Traditional SPA
Those two I'm pretty sure what I would use, but the other applications in between those extremes I'm not that sure...
Re:How SoundCloud built its new single-page main website usi...
by romaniv on Thursday June 14, 2012 @09:32AM
(#4111227)
I wouldn't mind at all if Gmail was a traditional multipage app that works without JavaScript.
Google Maps is probably a much better example.
Re:How SoundCloud built its new single-page main website usi...
by prodigal_erik on Thursday June 14, 2012 @09:56AM
(#4111335)
Gmail does work without javascript, it has long been the example I give of competent web authoring. As for when it makes sense, I suggest this guideline: if what you're building is to be a worthwhile contribution to the World-Wide Web, it should have a mode with server-rendered semantic markup behind URLs which are stable forever. Client-side rendering is an enhancement to build after that works well. Your content is more important than the custom behavior you're adding to the the browser the user already chose.
Re:How SoundCloud built its new single-page main website usi...
by carlosedp on Thursday June 14, 2012 @05:08PM
(#4113525)
This is exactly the approach I'm doing. I'm writing the app entirely server based, just a couple of ajax do avoid loading unnecessary data at some time.
The time I finish the app, I will tweak and optimize loading either by AJAX or implement something like backbone views.
Re:How SoundCloud built its new single-page main website usi...
by robmcm on Thursday June 14, 2012 @12:12PM
(#4112022)
Yeah you should try the HTML version of Gmail, it sucks.
Re:How SoundCloud built its new single-page main website usi...
by minikomi on Thursday June 14, 2012 @09:20AM
(#4111178)
When there is music playing for a start!
Re:How SoundCloud built its new single-page main website usi...
by mxxx on Thursday June 14, 2012 @10:36PM
(#4114680)
Well, for a start, when you've got a fully developed API.
We recently built a project that used a Backbone SPA for _some_ views, but was primarily server side.
Now we're building a mobile version, and having built the API in the first phase, we've got enough to go on to do it all via Backbone.
Additionally, when developing for mobile you're much more aware of bandwidth restrictions, so the ability to load only what you need becomes useful. When you're flicking through a bunch of pages that use the same view but with different data, an SPA lets you load only what you need.
Re:How SoundCloud built its new single-page main website usi...
by WiseWeasel on Thursday June 14, 2012 @11:06AM
(#4111639)
Whenever you can. It allows you to animate transitions during navigation, and to give your website more of a dynamic application feel instead of a static site. If done well, you encourage deeper interaction, as navigation feels more intuitive with smooth loading performance, without a jarring page reload, and with animations indicating what's going on.