开发者

Creating a social site completely with Javascript

I'm working on a social network site. Some suggestions have been made to create the entire site in JavaScript and use 开发者_C百科JSON to interact with the database. So essentially each call to the server would return some js files that create the page on the client side.

I think a template framework on the server side would be a better idea - something like django.

I'm curious as to what the pros/ cons / roadblocks of a completely javascript solution where everything down to page layout is defined in javascript.


One major con of an all javascript site is how to enable search engines to see the content you want them to see. Since most search engines don't run javascript, they don't see content you fetch and render in javascript. If you don't need SEO, then you can ignore this con.

Another con is that an all javascript site may not be accessible to screen readers and other tools used by visually impaired folks.

It is more common these days to use a combination of web-served pages/content and then use javascript to enhance the experience and implement features and dynamic behaviors in the page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜