Mais conteúdo relacionado Semelhante a Angular2 + AWS Lambdaでサーバサイドレンダリングしてみた (20) Angular2 + AWS Lambdaでサーバサイドレンダリングしてみた1. Angular 2 + AWS Lambda
2016. 11. 28. dots.
AKIRA-MIYAKE
2. • AKIRA-MIYAKE
• Blog: http://dream-of-electric-cat.hatenablog.com/
• Twitter: @DreamOfEleCat
• GitHub: https://github.com/AKIRA-MIYAKE
• +
• UI JavaScript/HTML/CSS
• Docker CI AWS
• iOS
5. • = HTML JS DOM
: https://developers.google.com/web/fundamentals/performance/critical-rendering-path/analyzing-crp
7. • 3 → 40%
• → 79%
• → 52%
• → 44%
• 1 16%
: https://blog.kissmetrics.com/loading-time/?wide=1
8. SEO
• Googlebot
•
• Promise, Service Worker, Fetch API, Local Storage,
ES6/ES2015
• onLoad
• SPA
: https://www.youtube.com/watch?v=JlP5rBynK3E&feature=youtu.be
9. Googlebot
•
• raw HTML
• SPA URL raw HTML
•
: https://www.youtube.com/watch?v=JlP5rBynK3E&feature=youtu.be
12. SSR
•
•
• JS
• PhantomJS, CasperJS
• prerender.io
• Virtual DOM
• Virtual DOM JS
• DOM HTML
• Angular2, React, Vue 2.0
15. Angular Universal
ServicesComponents …
AppModule for
Browser
AppModule for
Node
platformBrowserDynamic()
.bootstrapModule()
platformUniversalDynamic()
.serializeModule()
DOM HTML
UniversalModule
for Browser
UniversalModule
for Node
Inject Modules Inject Modules
Browser Server
Angular
Application
17. • AWS Lambda Azure Functions Google Cloud
Functions
• Function-as-a-Service(FaaS)
• FaaS
: https://www.youtube.com/watch?v=JlP5rBynK3E&feature=youtu.be