Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
EC-CUBE勉強会2019.09 AMP
Search
naganuma-mitsuhiro
September 06, 2019
Programming
1
460
EC-CUBE勉強会2019.09 AMP
naganuma-mitsuhiro
September 06, 2019
Tweet
Share
Other Decks in Programming
See All in Programming
Software Architecture
hschwentner
6
2.3k
10年もののAPIサーバーにおけるCI/CDの改善の奮闘
mbook
0
810
Cursorハンズオン実践!
eltociear
2
1k
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
470
Android16 Migration Stories ~Building a Pattern for Android OS upgrades~
reoandroider
0
100
Six and a half ridiculous things to do with Quarkus
hollycummins
0
170
高度なUI/UXこそHotwireで作ろう Kaigi on Rails 2025
naofumi
4
3.9k
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
310
Flutterで分数(Fraction)を表示する方法
koukimiura
0
130
非同期jobをtransaction内で 呼ぶなよ!絶対に呼ぶなよ!
alstrocrack
0
720
ポスターセッション: 「まっすぐ行って、右!」って言ってラズパイカーを動かしたい 〜生成AI × Raspberry Pi Pico × Gradioの試作メモ〜
komofr
0
1.3k
育てるアーキテクチャ:戦い抜くPythonマイクロサービスの設計と進化戦略
fujidomoe
1
170
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
GraphQLとの向き合い方2022年版
quramy
49
14k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
A Tale of Four Properties
chriscoyier
161
23k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
9
590
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.6k
Building a Scalable Design System with Sketch
lauravandoore
463
33k
Transcript
EC-CUBE勉強会 2019.09 株式会社サンデイシステムズ 永沼光啓
AMPとは ?
概要 : Accelerated Mobile Pages : HTMLフレームワーク : ⾼速に表⽰が可能 正式名称
区分 特徴
None
“ Googleはアクセスしたウェブページが低速である と「多くのユーザーはそのページの閲覧をやめてし まう」というデータを⽰しており、ページが⾼速で 表⽰される事は、ユーザー体験としてとても有益。 “
制限 CSS HTML JavaScript amp-imgλάͳͲͷ ಠࣗཁૉ 50KB·Ͱ jQuery ېࢭ
“ とはいえ、コンポーネントが充実してきてAMPで実 現できる事は増えてきており、それほど不⾃由さは 感じなくなってきている。エンドユーザにとって最 善の体験を提供できる仕組みを使⽤する事は、制作 サイドにとっても⾮常に価値の⾼い事である。 “
AMPプラグインについて
AMPプラグインがやってくれる事 AMP対応したtwigテンプレートを追加 ⾃⼰最適化処理の連携機能を提供 PWA化の実施
Template A Template B Template C EC-CUBE App Server Plugin
AMP Template A AMP Template B AMP Template C Service Worker Web App Manifest Cloud Functions amp-optimizer
None
None
None
None
これが所謂 PWAMP WEBサイトのエントリーポイントはAMP化して⾼速表⽰の体験 その後PWA化したサイトのUXを提供する AMP to PWAと⾔われる⼿法
<link rel="manifest" href="{{ url('amp_manifest') }}">
管理画⾯でできる事
None
Paired AMP AMP first https://◦◦.com/product/detail https://◦◦.com/amp/product/detail https://◦◦.com/product/detail
None
None
None
インタラクション
インタラクション • දࣔ͞Ε͍ͯΔֹۚΛมߋ • දࣔ͞Ε͍ͯΔίʔυΛมߋ • ೋͭΊͷηϨΫτϘοΫεͷoptionཁૉͷΛมߋ • ࡏݿ༗ແͷఆ͓ΑͼϘλϯͷϥϕϧมߋ •
ϑΥʔϜૹ৴࣌ͷͷมߋ
AMPコンポーネント amp-list amp-mustache amp-bind
None
None
None
None
• /Block/cart.twig • /Block/login_sp.twig • /Block/login.twig • /Block/news.twig • /Block/search_product.twig
• /Product/detail.twig • /Product/list.twig amp-list使⽤箇所
サービスワーカー
app/Plugin/Amp4/Controller/TopController.php
/gulpfile.js
None