javascript - What are the pros and cons of building an AJAX-heavy web app over one with persistent URLs? -


original question: bad idea make javascript website?

*changed question because ended being more of discussion, helpful others.*

in case, thinking of making website delivers overall layout using regular html (like normal, basic web page), plan fill content of html content area dynamically, entirely ajax requests.

users of site won't ever refreshing page or going new page, , other divs , elements need generated created using ajax (making use of lots of javascript functions on cached external javascript page).

although i'm not making forum website, forum's level of functionality close want achieve. lots of database reading , writing too.

is bad idea? not considering make potentially terrible? performance-wise (since i'll doing client-side work , less server side work)?

i realize page wouldn't work people have javascript turned off, that's not concern in case. i'm not worrying mobile devices don't support javascript, since create mobile-specific version of site doesn't use javascript).

thanks!

update: first: thank responses, everyone! appreciate it!

just clarification purposes, thought idea because seemed say, "hey ajax, give me raw forum post data page , i'll of html building on client side." same db access of course, less server side page formatting work , less data transfer client.

and important clarification: i'm not worried search engine optimization because forum login-only network should not crawled or viewed non-logged-in users.

not crazy idea @ all, recommend against since it'd hard maintain. got know you're getting in to. facebook similar. google search interface, example, keeps on same page when perform search.

you might interested in:

backbone.js http://documentcloud.github.com/backbone/

and bbq (back button query) http://benalman.com/code/projects/jquery-bbq/docs/files/jquery-ba-bbq-js.html

one disadvantage analytics scripts won't work on sites built way, depending how build them.

edit:

one concern won't search engine crawlable. can overcome if build site well, using bbq, , following spec:

http://code.google.com/web/ajaxcrawling/docs/specification.html


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -