Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
広告のAMP対応
Search
Kanako Arai
February 17, 2017
Programming
66
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
広告のAMP対応
Kanako Arai
February 17, 2017
Other Decks in Programming
See All in Programming
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
150
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
ActionController meets Protocol Buffers
sorah
0
520
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
Railsバージョンを4倍にした話
optim
0
350
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
複雑なUIコンポーネントとの ⻑い付き合い⽅:波及するバグからテスト戦略を経て、安全な再設計へ
mixplace
0
410
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
カツオ、ご期待ください
suneo3476
0
190
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Verilogで学ぶCPU自作入門
uyuki234
8
4.1k
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Utilizing Notion as your number one productivity tool
mfonobong
4
620
WCS-LA-2024
lcolladotor
0
890
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
410
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
520
Git: the NoSQL Database
bkeepers
PRO
433
67k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
330
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Transcript
ࠂͷAMPରԠ
ࣗݾհ ߥҪ߳ࡊࢠ MDHͷαʔόαΠυΤϯδχΞ ͖ͳݴޠ: scala ͖ͳϑϨʔϜϫʔΫ: Akka JavaScript Ͳૉਓ
༰ MDH͕ A.J.A. Infeed ࠂΛ AMPରԠͨ͠ͱ͖ʹ ࠔͬͨ͜ͱɾղܾํ๏
AMPରԠͨ͠ཧ༝ MDH͕ओʹࠂΛग़͍ͯ͠Δ Ξϝϒϩ͕AMPରԠ͢Δ͔Β
AMPͱʁ GoogleͱTwitter͕த৺ͱͳͬͯ͡Ίͨ ΦʔϓϯιʔεϓϩδΣΫτ
None
ϞόΠϧϖʔδΛ ߴͰදࣔ͢ΔͨΊͷΈ
AMP HTML ΧελϜAMPϓϩύςΟΛՃͨ͠HTML GoogleΫϩʔϥ͕AMP Cacheొͯ͘͠ΕΔ AMP JS Ҏ֎ͷJavaScript͕͑ͳ͍
AMP Cache ϓϩΩγϕʔεͷCDN ਖ਼͍͠ߏͷAMP HTMLͱϦιʔεΛ࠷దԽͯ͠Ωϟογϡͯ͘͠ΕΔ
AMP JS AMP Cache ʹೖͬͯΔ AMP༻JavaScript AMP HTML ͷϨϯμϦϯάΛߴԽ͢Δ JavaScriptͰͳ͍ͱ࣮ݱͰ͖ͳ͍ίϯϙʔωϯτΛ༻ҙ
Google Search ϞόΠϧϖʔδ͕AMPରԠ͞Ε͍ͯͨΒ AMP Cache ͷURLΛݕࡧ݁Ռʹग़͢ ϞόΠϧ͔ΒͷΞΫηε͕ߴԽ͞ΕΔ
Ξϝϒϩ͕ AMP HTML Ͱ هࣄΛ༻ҙ AMP JS ͷ ࠂίϯϙʔωϯτΛ͏ MDH͕
AMP JS Ͱ A.J.A. Infeed ࠂ༻ ίϯϙʔωϯτΛ༻ҙ
۩ମతʹͳʹΛ͔ͨ͠ʁ AMP JS A.J.A. Infeed ࠂαϙʔτͷ ϓϧϦΫΛग़͢
AMPࠂ͕Ͳ͏ͬͯදࣔ͞Ε͍ͯΔ͔ʁ <amp-ad width="320" height="120" type="caajainfeed" data-ad-spot="thtuegn1pAQ" data-test="true"> </amp-ad> <amp-ad width="320"
height="120" type="caajainfeed" data-ad-spot="thtuegn1pAQ" data-test="true" class="i-amphtml-element i-amphtml-layout-fixed i-amphtml-layout-size-defined i-amphtml-layout" data-amp-slot-index="25" style="width: 320px; height: 120px;"> <div placeholder="" class="amp-hidden"></div> <div fallback=""></div> <iframe src="https://d-40792436924160944579.ampproject.net/1486153081489/frame.html" name="hogehoge" width="320" height="120" scrolling="no" data-amp-3p-sentinel="0-38170932382427127587" class="i-amphtml-fill-content -amp-fill-content" style="border: none;"></iframe> </amp-ad> ͜ͷλά͕ ͜Μͳײ͡Ͱදࣔ͞ΕΔ αϯυϘοΫεͷiframe͕ ల։͞Εͯɺ͜ͷதͰAMP JS Ҏ֎ͷJSΛར༻Ͱ͖Δ Α͏ʹͳ͍ͬͯΔ
AMPରԠͰࠔͬͨ͜ͱᶃ
AMPࠂͷinviewܭଌ iframeʹࠂ͕ϨϯμϦϯά͞ΕΔ͔Β ը໘ʹࠂ͕දࣔ͞Εͨ͜ͱΛ ݕ͢Δ͜ͱ͕͍͠
AMPࠂͷinviewܭଌ amp-analyticsλά͕طʹ༻ҙ͞Ε͍ͯΔ͚Ͳ amp-adλάͱඇಉظͰಈ͘͠ ࠂͷҐஔΛܭଌ͢ΔͷແཧͬΆ͍
AMPࠂͷinviewܭଌ ղܾํ๏ amp-adλά෦Ͱల։͞ΕΔiframe෦Ͱ APIΛར༻ͯ͠ࠂҐஔΛܭଌ͢Δ දࣔͱܭଌΛಉ͡λάͰ࣮ window.context.observeIntersection(function(changes) { changes.forEach(function(c) { console.info('Height
of intersection', c.intersectionRect.height); }); }) ը໘ͱࠂͷަࠩͷߴ͕͞௨͞ΕΔ ը໘ʹࠂ͕දࣔ͞ΕͨΒɺ͜ͷ͕0Ҏ্ʹͳΔ
AMPରԠͰࠔͬͨ͜ͱᶄ
AMP JS ͷ lint A.J.A.ͷࠂϨϯμϦϯά༻ϥΠϒϥϦͰఆٛͨ͠ ؔΛΤΫεϙʔτͯ͑͠ͳ͍
AMP JS ͷ lint
AMP JS ͷ lint ղܾํ๏ globalʹλάͷଐੑύϥϝλΛೖΕ͔ͯΒ A.J.A.ͷϥΠϒϥϦΛϩʔυ ※ͩΕ͔ͬͱྑ͍ํ๏͕͋ͬͨΒڭ͍͑ͯͩ͘͞
AMPରԠͰࠔͬͨ͜ͱᶅ
CLAಉҙॻਃ͕௨Βͳ͍ Contributor License Agreements
CLAಉҙॻਃ͕௨Βͳ͍ CLAಉҙॻਃ͕௨Βͳ͍ͱ ϓϧϦΫΛϨϏϡʔͯ͠Β͑ͳ͍ bot͕ϓϧϦΫͷεςʔλεΛཧ͍ͯ͠Δ
CLAಉҙॻਃ͕௨Βͳ͍
CLAಉҙॻਃ͕௨Βͳ͍ ਃ͢Δͱɺ͙͢ʹূ໌ॻ͕ૹ৴͞ΕΔ͔Β ௨ͬͨͱࢥ͏͚Ͳ
CLAಉҙॻਃ͕௨Βͳ͍ CyberAgentͰਃͯ͠Έ͚ͨͲ εςʔλε͔ΘΒͣɾɾɾ
CLAಉҙॻਃ͕௨Βͳ͍ ݪҼ ਃ͢Δͱ͖ͷऀͷ৬Λ Directorʹͯͨ͠ ChiefҎ্͘͠หޢ࢜Ͱͳ͍ͱ ਃ͕௨Βͳ͍ ※ޙ↑ͷ༰ͷϝʔϧ͕͖·ͨ͠
CLAಉҙॻਃ͕௨Βͳ͍ ղܾํ๏ SlackͰ͓ͭ͘͜͠ئ͍͢Δ
CLAಉҙॻਃ͕௨Βͳ͍ botͷόάͩͱࢥͬͯڧؾͰ͓ئ͍ͯ͠͠·͍·ͨ͠ɻ ຊʹਃ͠༁ͳ͍͜ͱΛ͠·ͨ͠ɻ
AMPରԠͰࠔͬͨΒʁ ίϛϡχςΟͰ࣭ͨ͠Β୭͔͕͑ͯ͘ΕΔ Slack https://docs.google.com/a/cyberagent.co.jp/forms/d/e/ 1FAIpQLSd83J2IZA6cdR6jPwABGsJE8YL4pkypAbKMGgUZZriU7Qu6Tg/viewform?fbzx=4406980310789882877 StackOverFlow http://stackoverflow.com/questions/tagged/amp-html AMP HTML Discuss
https://groups.google.com/forum/#!forum/amphtml-discuss
͓ΘΓ ͜Ε͔ΒࠂΛAMPରԠ͞ΕΔํͷ ࢀߟʹͳΕɺ͍Ͱ͢ɻ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ