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
スタンドアロンAMPのすゝめ
Search
t32k
March 20, 2017
Technology
3
13k
スタンドアロンAMPのすゝめ
FRONTEND CONFERENCE 2017 | 関西フロントエンドUG
http://kfug.jp/frontconf2017/
t32k
March 20, 2017
Tweet
Share
More Decks by t32k
See All by t32k
なぜプレイドにデザインエンジニアが必要だったのか?
t32k
0
7
Evaluating your stylesheets
t32k
0
780
Evaluating CSS
t32k
10
2.2k
Modern Development Workflow with Grunt
t32k
22
36k
WebPagetest in 5 minutes
t32k
12
2.6k
Introduction to Sass Compass for Sencha Touch
t32k
6
1.9k
var Gurator = Gist + Curator;
t32k
0
350
Sublime Text and Grunt for Titanium Development
t32k
5
3.3k
3 secrets for optimizing Web application
t32k
6
200
Other Decks in Technology
See All in Technology
AIとSREで「今」できること
honmarkhunt
3
710
正式リリースされた Semantic Kernel の Agent Framework 全部紹介!
okazuki
1
960
AIによるコードレビューで開発体験を向上させよう!
moongift
PRO
0
410
CARTA HOLDINGS エンジニア向け 採用ピッチ資料 / CARTA-GUIDE-for-Engineers
carta_engineering
0
27k
猫でもわかるS3 Tables【Apache Iceberg編】
kentapapa
0
120
3D生成AIのための画像生成
kosukeito
2
610
雑に疎通確認だけしたい...せや!CloudShell使ったろ!
alchemy1115
0
190
DjangoCon Europe 2025 Keynote - Django for Data Science
wsvincent
0
520
Simplify! 10 ways to reduce complexity in software development
ufried
2
240
Aspire をカスタマイズしよう & Aspire 9.2
nenonaninu
0
380
CodeRabbitと過ごした1ヶ月 ─ AIコードレビュー導入で実感したチーム開発の進化
mitohato14
1
240
Azure Maps Visual in PowerBIで分析しよう
nakasho
0
210
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
The Pragmatic Product Professional
lauravandoore
33
6.6k
Rebuilding a faster, lazier Slack
samanthasiow
81
9k
Being A Developer After 40
akosma
91
590k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
5
600
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Testing 201, or: Great Expectations
jmmastey
42
7.5k
4 Signs Your Business is Dying
shpigford
183
22k
How STYLIGHT went responsive
nonsquared
100
5.5k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Automating Front-end Workflow
addyosmani
1370
200k
Transcript
スタンドアロンAMPのすゝめ FRONTEND CONFERENCE 2017 - @t32k - 2017/03/18
• Koji Ishimoto • id: t32k • Front-end Developer •
Mercari, Inc. / Souzoh, Inc. 自己紹介
なんでも募集できる地域コミュニティアプリ https://www.mercariatte.com/jp/ メルカリアッテとは
1. AMPのメリット 2. 表現力について 3. テンプレート分散について 4. 構造化データについて 5. まとめ
アジェンダ
AMP Accelerated Mobile Pages
AMPとは? AMPはオープンな仕様に沿って作成されたWebページです。検証 された AMP ページは Google の AMP キャッシュに保存されま す。キャッシュに保存することでページをこれまで以上にすばやく
表示できるようになります。 AMP ページの Google 検索ガイドライン - Search Console ヘルプ
AMPを支える3本柱 - AMP HTML(amp-imgとかamp-***とか) - AMP JS(最適化処理されたJavaScript) - Google AMP
Cache(Google CDNからの配信)
None
裏側で<iframe>を読み込んでいる... AMPビューワーURL オリジナルAMPソースURL ATFのリソースしか読み込んでいない AMPキャッシュURLから配信されたコンテンツ
AMPのメリット - 検索ランキングが上がるわけではない(SEO忘れて!) - SERP*上でキャッシュが効いた状態でアクセスできる - ユーザー体験向上ヽ(=´▽`=)ノ * Search Engine
Result Page 検索結果ページ
広がるAMPパートナー - Yahoo Japanが対応(導入時期未定、2017/03現在) - BaiduやSogouも! - CloudflareはAccelerated Mobile Links
利用可能
AMPキャッシュの更新 AMPドキュメントが表示されると、更新リクエストがされます。その ため、次のユーザーは更新されたAMPドキュメントにアクセスする ことになります。 任意のタイミングで更新したい場合は、下記のようなAMPキャッ シュURLに直接アクセスることで、更新できます。 https://example-com.cdn.ampproject.org/c/s/amp_document.html Google AMP Cache
Overview | Google Developers
Breaking the 1000ms Mobile Barrier PageSpeed Insights でのモバイル解析 | Google
Developers
無理じゃん!
- No bit is faster than one that is not
sent; send fewer bits. - We can’t make the bits travel faster, but we can move the bits closer. High Performance Browser Networking Ilya Grigorik
16 Cash is King
17 Cash is King Cache is King
Use AMP!
Problem:1
The New York Times Mercari The Guardian
iモードサイト?
AMPの速さの理由 - 非同期スクリプトしか認めない(野良JSの使用禁止) - リソースは予めサイズ指定する - 拡張コンポーネントに描画をブロックさせない - Third-Party JavaScript
はクリティカルパスにいれない - CSSは全てインラインに記述し50KBまでに制限する - フォントの読み込みは適切に - スタイルの再計算は最小限に - GPUアニメーションしか認めない - リソース読み込みの優先づけ
AMPコンポーネントって知ってる?
https://www.ampproject.org/docs/reference/components
使えそうなコンポーネント - amp-carousel - amp-accordion - amp-sidebar - amp-iframe -
amp-analytics - amp-social-share - amp-youtube
In development - 2017.03.18
AMPでもリッチインタラクションが可能
Problem:2
None
30 www.example.com/article.html mobile.example.com/article.html mobile.example.com/amp/article.html Paired
CSSって知ってる?
Media Queriesって知ってる?
33 www.example.com/article.html Standalone(AMP) Responsive Layout
モバイルで速いということはデスクトップでも速い
AMP isn’t mobile only , it’s mobile first. About that ‘mobile’
in Accelerated Mobile Pages – Medium Paul Bakaus
AMPはモバイル『専用』ではない
https://www.ampproject.org/
https://ampstart.com/
https://webmaster-ja.googleblog.com/2016/11/mobile-first-indexing.html
https://www.mercariatte.com/jp/
Problem:3
構造化データむずい
SERP上でAMPコンテンツとして表示するために - ValidなAMPで実装する - 適切な構造化データマークアップする - @type: Article or NewsArticle
or BlogPosting
https://search.google.com/structured-data/testing-tool
https://offer.mercariatte.com/jp/6898226402064232/
これって『記事』?
最近『レシピ』に対応したとか
『プロダクト』はよ!
Wrap Up
None
None
(ms)
まとめ - ビジュアル表現を制限するものではない - RuleはあるがLimitではない - テンプレートの分散は避けるべき - AMPでResponsiveでFastサイトを作ろう -
とはいえ、しんどい(Schema.orgの対応など) - 簡単なドキュメントサイトなら一考あり
Thank you! https://t32k.me/