Slide 1

Slide 1 text

AJAX in a responsive publishing world CRAWLABILITY

Slide 2

Slide 2 text

google.me/+EricWu @eywu linkedin.com/in/ericywu github.com/eywu

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

AJAX is like violence if it doesn't solve your problems, you’re not using enough of it.

Slide 5

Slide 5 text

16ms 10kb 100ms SPEED, PERFORMANCE, HUMAN PERCEPTION

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

PAGES CRAWLED PER DAY 80% INCREASE 20,000 80,000 May 2013 – Aug 2013

Slide 8

Slide 8 text

80% INCREASE ORGANIC SEARCH SESSIONS 600,000 1,200,000 May 2013 – Aug 2013

Slide 9

Slide 9 text

Mar 2004: “Googlebot/Test” External JS Mar 2006: Googlebot Uses Onsite Live Chat June 2010: Caffeine (Full Rollout) Nov 2010: Instant Preview May 2014: GWT Fetch & Render May 2012: Matt PSA. Don’t Block JS & CSS Oct 2009: AJAX Crawlability _escaped_fragment_ Nov 2007: Spider’s View on Web 2.0 May 2013: Matt Video. Googlebot & AJAX

Slide 10

Slide 10 text

SCROLL

Slide 11

Slide 11 text

http://googlewebmastercentral.blogspot.com/2014/02/infinite-scroll-search-friendly.html THINK BASIC PAGINATION NAVIGATE / PAGINATE

Slide 12

Slide 12 text

NAVIGATE / PAGINATE Load More LOAD MORE LINK

Slide 13

Slide 13 text

NAVIGATE / PAGINATE Load More LOAD MORE LINK

Slide 14

Slide 14 text

NAVIGATE / PAGINATE REL=NEXT / PREV

Slide 15

Slide 15 text

POINTER URLS* example.com/?last-post=42 example.com/?time=1401424133

Slide 16

Slide 16 text

CONTINUOUS CONTENT

Slide 17

Slide 17 text

PUSHSTATE OR SHEBANG #! http://caniuse.com/#search=history history.pushState( {}, titleOfPage, newURL ); history.replaceState();

Slide 18

Slide 18 text

AJAX GALLERIES

Slide 19

Slide 19 text

CONTINUOUS CONTENT 1.  PUSHSTATE 2.  VIEW-SOURCE NEXT SLIDE LINKS 3.  REL=NEXT/ PREV

Slide 20

Slide 20 text

DEFERED IMAGE LOADING I WISH CRAWLERS SUPPORTED REL=CANONICAL HTTP HEADERS FOR IMAGES

Slide 21

Slide 21 text

80% DECREASE IMAGE SEARCH SESSIONS 400,000 800,000 Nov 2012 – Mar 2013

Slide 22

Slide 22 text

LAZY LOADING •  1x1 “BLANKS” •  SKELETON SCREENS •  LOW RESOLUTION Z Z Z

Slide 23

Slide 23 text

RESPONSIVE IMAGES •  •  SRCSET •  POLYFILL •  UA DETECTION

Slide 24

Slide 24 text

NOSCRIPT

Slide 25

Slide 25 text

CRAWLABLE PARTIALS

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

CRAWLABLE PARTIALS LYRIC SEARCH LINKS TO http://rock.rapgenius.com/1884632/Pharrell-williams- happy/ It-might-seem-crazy-what-im-bout-to-say-sunshine-shes- here-you-can-take-a-break

Slide 28

Slide 28 text

CRAWLABLE PARTIALS JS ENABLED REDIRECTS http://rock.rapgenius.com/Pharrell-williams- happy-lyrics#note-1884632

Slide 29

Slide 29 text

CRAWLABLE PARTIALS JS DISABLED RENDERS http://rock.rapgenius.com/1884632/Pharrell-williams- happy/It-might-seem-crazy-what-im-bout-to-say-sunshine- shes-here-you-can-take-a-break

Slide 30

Slide 30 text

4X PAGES CRAWLED PER DAY QUADRUPALED 75,000 300,000 May 2013 – Aug 2013

Slide 31

Slide 31 text

+1 MILLION ORGANIC SEARCH SESSIONS 2,000,000 4,000,000 May 2013 – Aug 2013

Slide 32

Slide 32 text

Technical SEO Community HelpDeskHangouts.com SearchSignals.com bit.ly/ajax-crawlability

Slide 33

Slide 33 text

APPENDIX

Slide 34

Slide 34 text

ARCHITECTURE PRERENDER SERVERSIDE VS

Slide 35

Slide 35 text

PRERENDER

Slide 36

Slide 36 text

PRERENDER

Slide 37

Slide 37 text

PRERENDER SEO.js CONS PROS • SINGLE VIEW TEMPLATE • SINGLE ROUTING • REVERSE PROXY CACHING • _ESCAPED_FRAGMENT_ • INTERPOLATED SOURCE

Slide 38

Slide 38 text

SERVER SIDE

Slide 39

Slide 39 text

SERVER SIDE

Slide 40

Slide 40 text

SERVER SIDE

Slide 41

Slide 41 text

SERVER SIDE

Slide 42

Slide 42 text

SERVER SIDE

Slide 43

Slide 43 text

SERVER SIDE

Slide 44

Slide 44 text

SERVER SIDE RENDER CONS PROS • CLEAN URLS* • ALL REQUESTS ARE EQUAL • TRUE DYNAMIC RESPONSE • 2 ROUTERS • 2 VIEW TEMPLATES*

Slide 45

Slide 45 text

Quote conflated from my favorite ruby XML parser » http://nokogiri.org/ Speed, Performance, and Human Perception » https://www.youtube.com/watch?v=7ubJzEi3HuA SERoundtable Timeline Links » http://www.seroundtable.com/google-javascript-webmaster-tools-18602.html Googlebot/Test External JS » http://www.seroundtable.com/archives/000236.html Googlebot Uses Onsite Live Chat » http://www.seroundtable.com/archives/003492.html Spider’s View on Web 2.0 » http://googlewebmastercentral.blogspot.com/2007/11/spiders-view-of-web-20.html AJAX Crawlability Proposal » http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html Caffine Rollout » http://googlewebmastercentral.blogspot.com/2010/06/our-new-search-index-caffeine.html Instant Previews » http://googleblog.blogspot.com/2010/11/beyond-instant-results-instant-previews.html http://googlewebmastercentral.blogspot.com/2010/11/instant-previews.html http://googlewebmastercentral.blogspot.com/2011/11/get-post-and-safely-surfacing-more-of.html https://sites.google.com/site/webmasterhelpforum/en/faq-instant-previews Matt Cutts PSA: Don’t Block JS & CSS » http://www.seroundtable.com/googlebot-javascript-css-14930.html Matt Video: How Does Googlebot handle content loaded via AJAX? » https://www.youtube.com/watch?v=_6mtiwQ3nvw REFERENCES

Slide 46

Slide 46 text

GWT Fetch & Render » http://googlewebmastercentral.blogspot.com/2014/05/rendering-pages-with-fetch-as-google.html Google Blog: Infinite Scroll Recommendations & Example » http://googlewebmastercentral.blogspot.com/2014/02/infinite-scroll-search-friendly.html LA Times Reimagined by Code and Theory » http://www.codeandtheory.com/things-we-make/the-los-angeles-times-reimagined Google Blog: Specify your canonical » http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html Google Blog: Pagination with rel=“next” and rel=“prev” » http://googlewebmastercentral.blogspot.com/2011/09/pagination-with-relnext-and-relprev.html Google Blog: Video about Pagination » http://googlewebmastercentral.blogspot.com/2012/03/video-about-pagination-with-relnext- and.html One Page Wonder: Coverage on QZ » http://www.foliomag.com/2013/one-page-wonder-infinite-scroll The Next Web Redesign Coverage » http://www.niemanlab.org/2012/10/the-next-web-redesigns-to-be-more-app-like/ The Next Web Press Release » http://thenextweb.pr.co/ 010a893a11df2bb61d981b2b0607c1b6784a5ab07b5ab100790b2bb3168a35f8 REFERENCES

Slide 47

Slide 47 text

USA Today Redesign » http://blog.f-i.com/usatoday-com-redesigning-one-of-americas-most-popular-news-site/ http://designenvy.aiga.org/usa-today-website-redesign-fantasy-interactive/ http://www.businessinsider.com/usa-todays-homepage-redesigns-2012-9 Gawker 1 Year Later Success » http://thenextweb.com/insider/2012/02/02/remember-that-gawker-redesign-a-years-worth-of- data-says-it-worked/ http://www.businessinsider.com/nick-denton-loses-bet-that-the-gawker-redesign-wouldnt-hurt- traffic-2011-10 http://www.businessinsider.com/gawker-media-traffic-numbers-2011-4 Gawker Failed Coverage » http://www.catchmyfame.com/2013/05/02/how-gawker-sabotaged-their-own-network-with-a- horrible-new-layout/ http://www.theatlantic.com/technology/archive/2011/04/gawkers-traffic-numbers-are-worse-than- anyone-anticipated/237594/ http://www.webmonkey.com/2011/02/gawker-learns-the-hard-way-why-hash-bang-urls-are-evil/ Paul Irish to Matt Cutts Video » https://www.youtube.com/watch?v=yiAF9VdvRPw Google Developer Documentation on AJAX Crawlability » https://developers.google.com/webmasters/ajax-crawling/ Browser Compatibility Chart » http://caniuse.com/#search=history Breaking The Web With Hash Bangs » http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs REFERENCES

Slide 48

Slide 48 text

Vox Cards: Legalization of Marijuana » http://www.vox.com/cards/marijuana-legalization/learn-more-about-marijuana-legalization Bing’s Duane Forrester says still no rel=canonical in http headers » https://twitter.com/DuaneForrester/status/459387860358295552 Google Blog: A Faster Image Search » http://googlewebmastercentral.blogspot.com/2013/01/faster-image-search.html Google Says It’s Better for Webmasters » http://www.seroundtable.com/google-image-search-design-16259.html Ilya Grigork discussion around injection » https://plus.google.com/+IlyaGrigorik/posts/S6j45VxNESB Vox Workflow for Creating SVG Images » http://product.voxmedia.com/2013/11/25/5426880/polygon-feature-design-svg-animations-for-fun- and-profit One Solution to Responsive Images » http://www.smashingmagazine.com/2014/02/03/one-solution-to-responsive-images/ Truly Responsive Images » http://davidwalsh.name/responsive-design AngularJS NYC Meetup: Server-side Template Rendering by HBO » http://youtu.be/iB7hfvqyZpg?t=58m20s REFERENCES

Slide 49

Slide 49 text

Vox Cards: Legalization of Marijuana » http://www.vox.com/cards/marijuana-legalization/learn-more-about-marijuana-legalization Bing’s Duane Forrester says still no rel=canonical in http headers » https://twitter.com/DuaneForrester/status/459387860358295552 Google Blog: A Faster Image Search » http://googlewebmastercentral.blogspot.com/2013/01/faster-image-search.html Google Says It’s Better for Webmasters » http://www.seroundtable.com/google-image-search-design-16259.html Ilya Grigork discussion around injection » https://plus.google.com/+IlyaGrigorik/posts/S6j45VxNESB Vox Workflow for Creating SVG Images » http://product.voxmedia.com/2013/11/25/5426880/polygon-feature-design-svg-animations-for-fun- and-profit One Solution to Responsive Images » http://www.smashingmagazine.com/2014/02/03/one-solution-to-responsive-images/ Truly Responsive Images » http://davidwalsh.name/responsive-design Serious Angular SEO » http://www.ng-newsletter.com/posts/serious-angular-seo.html AngularJS NYC Meetup: Server-side Template Rendering by HBO » http://youtu.be/iB7hfvqyZpg?t=58m20s REFERENCES

Slide 50

Slide 50 text

Josh Kadis Quartz on VIP Wordpress Video » http://vip.wordpress.com/2013/09/26/josh-kadis-qz-wordpress/ https://docs.google.com/file/d/0B2Z4K6ynFLg5TVdvWVV1aTRmYUU/edit?pli=1 AirBNB: Our First Node.js App » http://nerds.airbnb.com/weve-launched-our-first-nodejs-app-to-product/ AirBNB: Rendr (Backbone in the Browser and Node) » http://nerds.airbnb.com/weve-open-sourced-rendr-run-your-backbonejs-a/ StackOverflow: PushState, Backbone, and Node » http://stackoverflow.com/questions/7098130/reusing-backbone-views-routes-on-the-server-when- using-backbone-js-pushstate-for Google: How do I create an HTML Snapshot (HIJAX) » https://developers.google.com/webmasters/ajax-crawling/docs/html-snapshot REFERENCES