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
480
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
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
280
Model Mondays S2E01: Advanced Reasoning
nitya
0
310
Workflows から Agents へ ~ 生成 AI アプリの成長過程とアプローチ~
belongadmin
2
140
脅威をモデリングしてMCPのセキュリティ対策を考えよう
flatt_security
4
1.5k
生成AIをテストプロセスに活用し"よう"としている話 #jasstnano
makky_tyuyan
0
140
「どこにある?」の解決。生成AI(RAG)で効率化するガバメントクラウド運用
toru_kubota
2
360
RubyOnRailsOnDevin+α / DevinMeetupJapan#2
ginkouno
0
260
Tenstorrent 開発者プログラム
tenstorrent_japan
0
300
(非公式) AWS Summit Japan と 海浜幕張 の歩き方 2025年版
coosuke
PRO
1
170
kotlin-lsp を Emacs で使えるようにしてみた / use kotlin-lsp in Emacs
nabeo
0
140
新規プロダクト開発、AIでどう変わった? #デザインエンジニアMeetup
bengo4com
0
440
Digitization部 紹介資料
sansan33
PRO
1
4.2k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
Side Projects
sachag
454
42k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
20
1.3k
Unsuck your backbone
ammeep
671
58k
Product Roadmaps are Hard
iamctodd
PRO
53
11k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.3k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Art, The Web, and Tiny UX
lynnandtonic
299
21k
Optimizing for Happiness
mojombo
379
70k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Scaling GitHub
holman
459
140k
4 Signs Your Business is Dying
shpigford
184
22k
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/