vuestorefront / vue-storefront

Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
https://www.alokai.com
MIT License
10.58k stars 2.08k forks source link

Progressive Web AMPs #1011

Closed kyvaith closed 6 years ago

kyvaith commented 6 years ago

Maybe as a part of next big release, but vue-storefront should defenitly leverage next big approach of integrating AMP with PWA. Please refer to: https://www.smashingmagazine.com/2016/12/progressive-web-amps/#amp-to-pwa https://amphtml.wordpress.com/2016/08/22/getting-started-with-amp-for-e-commerce/ https://ampbyexample.com/introduction/amp_for_e-commerce_getting_started/

Example of AMP that installs service worker and become PWA with e-commerce suport by utilising Payment Request API: https://ampbyexample.com/advanced/payments_in_amp/preview/

pkarw commented 6 years ago

@filrak @Igloczek guys could I put you in on this?

Igloczek commented 6 years ago

I'll just copy paste my answer from Slack :) "I know it's possible to build "PWAMP", but this product needs a lot of love to be fully functional SPA, then we can think about more and more PWA features and then maybe we should think about AMP. Stop hyping on cool acronyms, do one thing good and them move forward"

alankent commented 6 years ago

Just FYI, I am doing some research on PWA, AMP, and ecommerce. So feel free to drop me a line if you ever get around to this.

filrak commented 6 years ago

@pkarw AMP is a great piece of tech especially the newest version with shadow-amp allowing to easly integrate it with any website without affecting design that much but I think it's more a 'nice to have' than 'must have' before 1.0.

pkarw commented 6 years ago

After some research done on the topic -> it makes no sense to combine PWA + AMP due to AMPHTML limitations (by some validation constraints / security rules it's not possible to use dynamic content as JS inside AMPHTML sites)