Web front-end architecture Talk: Single page application and server template system

Source: Internet
Author: User

Single Page Web application:

one page application (single page application) increasingly popular with Web developers, the single-page app experience simulates native applications, one-time development, and multi-terminal compatibility. Single page application is not a new technology, but with the development of the Internet, to meet the user experience of a comprehensive technology, but also big touts.

This technology in recent years with the mobile side of the hot also gradually warming, backbone,angular, such as the rise of the front-end framework, combined with NODEJS, so that the front and back language of the same, frontend development can be compatible with the backend development and so on, and replace the previous years Eminence jquery trend.

The shortcomings of jquery are actually very obvious, bloated and poorly maintained.

An article is recommended here: HTTP://WWW.ANGULARJS.CN/A0BZ

Indeed, the front-end frame is very tempting, but also has fatal shortcomings, SEO problems, to know, search engine leader Google in the Ajax crawl has not yet achieved breakthrough achievements, not to mention the domestic bidding rankings Baidu.

ajax Crawl is also known as dark Net crawl, crawlers require sophisticated algorithm support, and single-page front-end and back-end connections are basically through restful api,restful API in recent years the popularity of everyone also know, we choose restful API may be" restful API to search engine friendly", but as far as I know, the domestic Baidu to restful API support is less than the traditional Web style (lol).

So, when you choose a single-page front-end application, the content is basically difficult to get to the search engine, single-page front-end to do information and show the idea of basically can be rejected, commercial applications are not to think about, perhaps can do a function, But the highly encapsulated framework, like angular, is less supportive of this idea, so it may return to the jquery route.

However, the single page application to the mobile side of the responsive support is very attractive, do not want to give up, and the single-page application of the front-end effect is also very ideal.

Perhaps a way to take the traditional front-end and single-page front-end combination!

However, this idea was quickly rejected by me, such as the Java EE platform, using JSP or velocity as the view layer, coupled with angular, because the JSP and velocity belong to the template system category, ${} and so on, encountered angular {{}} will not be compatible , it must be escaped, and the Django framework of the Python platform is the same, resulting in confusing code, maintainability, and poor readability.

In my opinion, the combination of single page application and template front end is a bad idea!

Web front-end architecture Talk: Single page application and server template system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.