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
Koji Ishimoto
March 20, 2017
Technology
3
12k
スタンドアロンAMPのすゝめ
FRONTEND CONFERENCE 2017 | 関西フロントエンドUG
http://kfug.jp/frontconf2017/
Koji Ishimoto
March 20, 2017
Tweet
Share
More Decks by Koji Ishimoto
See All by Koji Ishimoto
Evaluating your stylesheets
t32k
0
680
Evaluating CSS
t32k
10
2k
Modern Development Workflow with Grunt
t32k
22
36k
WebPagetest in 5 minutes
t32k
12
2.4k
Introduction to Sass Compass for Sencha Touch
t32k
6
1.8k
var Gurator = Gist + Curator;
t32k
0
290
Sublime Text and Grunt for Titanium Development
t32k
5
3.3k
3 secrets for optimizing Web application
t32k
6
170
Mobile Front-end Optimization Standard:2012
t32k
7
800
Other Decks in Technology
See All in Technology
いいたいことちゃんという
tkengo
0
250
Gradle Build Scanを使ってビルドのことを知ろう potatotips #87
tomorrowkey
2
160
uvを使ってストレスフリーな Python開発をしよう!
r74tech
0
220
生産性向上チームの紹介
cybozuinsideout
PRO
1
940
M5stackで使用できるpHセンサの開発
shinrinakamura
0
220
Rustで「プリズモイダル法」を利用して「土量計算」をガチでやる
nokonoko1203
1
330
Microsoft for Startups Founders Hub_20240429 update
daikikanemitsu
1
2.4k
Babylon.jsと色々なものを組み合わせる:ブラウザのAPIやガジェットや2D描画ライブラリなど / Babylon.js 勉強会 vol.3
you
PRO
0
180
生成AIの変革の時代に、直近1年で直面した課題とその解決策
ktc_wada
0
730
Amplify 🩷 Bedrock 〜生成AI入門〜
minorun365
PRO
8
1k
M5と自作基板をくっつけてみた〜M5 Japan Tour 2024 Spring 福冈 (Fukuoka|福岡)〜
keropiyo
0
190
One engineer company with Ruby on Rails
rstankov
2
440
Featured
See All Featured
It's Worth the Effort
3n
180
27k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
123
39k
Building an army of robots
kneath
300
41k
Building Your Own Lightsaber
phodgson
100
5.7k
Into the Great Unknown - MozCon
thekraken
15
1k
Optimising Largest Contentful Paint
csswizardry
13
2.4k
Automating Front-end Workflow
addyosmani
1357
200k
How to name files
jennybc
65
93k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.1k
Gamification - CAS2011
davidbonilla
77
4.6k
Designing with Data
zakiwarfel
96
4.8k
Web Components: a chance to create the future
zenorocha
306
41k
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/