简体   繁体   English

在较大的网站中合并单页网站的策略

[英]Strategy for combining single page website in larger website

I'm developing a website from scratch using Node and Express with Jade-based templating. 我正在使用Node和Express和基于Jade的模板从头开始开发网站。 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. 网站上互动性最强的部分(/ user下的帐户mgmt和/ order下的订购工作流,均仅限于经过身份验证的用户)基于Angular,并且几乎已经准备就绪。 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. 我现在开始在网站的交互性较弱(且不受限制)的部分上开始工作,例如首页,关于,常见问题,支持等。这些交互性较弱的页面显然将从使用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. 我正在考虑的选项包括:整个网站的Angular,简单的Jade模板和一些不太互动的部分定制的JS,或者除Angular的首页之外的所有内容。

My question is: what are the best practices for integrating an Angular (or other single page) website within a larger website? 我的问题是:在较大的网站中集成Angular(或其他单页)网站的最佳实践是什么? 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/应该可以解决该缺点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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