简体   繁体   中英

Strategy for combining single page website in larger website

I'm developing a website from scratch using Node and Express with Jade-based templating. The most interactive parts of the website (account mgmt under /user and ordering workflow under /order, both restricted to authenticated users) are based on Angular and almost ready for prime time. I'm now starting work on the less interactive (and non-restricted) parts of the website like the front page, about, faq, support, etc. These less interactive pages will obviously benefit less from using Angular.

I'm trying to get my head around the best strategy for combining these different parts of the website. The options I'm considering are: Angular for the entire website, simple Jade templating with a bit of bespoke JS for the less interactive parts, or everything except the front page in Angular.

My question is: what are the best practices for integrating an Angular (or other single page) website within a larger website? In particular, what are the advantages/disadvantages of the different options I listed above in terms of maintainability, (initial/ongoing) loading speed, consistency for users and search engine optimization? Any options/criteria missing?

对于SEO,您可以使用: https : //prerender.io/应该可以解决该缺点

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM