Your Script Just Killed My Site

11,574 views

Published on

All of us have a lurking failure in our websites: 3rd party scripts from ads, widgets, and analytics. How is it that one script can bring down your website?

Published in: Technology, Design
1 Comment
9 Likes
Statistics
Notes
  • Herve Leger V Neck Steel Metallic Foil Dress
    http://www.etooks.com/products/Herve-Leger-V-Neck-Steel-Metallic-Foil-Dress.html
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
11,574
On SlideShare
0
From Embeds
0
Number of Embeds
379
Actions
Shares
0
Downloads
0
Comments
1
Likes
9
Embeds 0
No embeds

No notes for slide
  • http://www.flickr.com/photos/jocelynaubert/3100384270/
  • http://www.flickr.com/photos/darwinbell/465459020/
  • http://en.wikipedia.org/wiki/Single_point_of_failure
  • WidgetsAdsAnalytics
  • Later in the docs they talk about how the LATER resources are loaded async, but not this bootstrap script.All it takes is one.
  • http://httparchive.webpagetest.org/result/120401_40_WFQG/
  • http://httparchive.webpagetest.org/result/120515_5_4S4C/plusone.js and all.js are synchronous
  • http://httparchive.webpagetest.org/result/120515_0_DNT/glamadapt_jsrv.act is inserted by wChannelModule.act using document.writelikecool is ranked 11KGlam Media is “the leader in curated social media content”
  • http://httparchive.webpagetest.org/result/120301_AP_P4W3/rank #19Kall.js, widgets.js, eluminate.js all loaded sync
  • http://httparchive.webpagetest.org/result/120401_8H_VTA3/
  • http://httparchive.webpagetest.org/result/120315_VQ_QCZP/fonts
  • http://httparchive.webpagetest.org/result/120515_0_35V/Their own CSS file
  • http://www.flickr.com/photos/rusty-projector/225212919/Thanks for listening to my cautionary tale of dread and foreboding. But it’s not all doom and gloom.
  • There is a brighter future where snippets aren’t a frontend SPOF.
  • http://www.flickr.com/photos/darwinbell/465459020/
  • Your Script Just Killed My Site

    1. Your script just killed my sitestevesouders.com/docs/fluent-spof-20120530.pptxDisclaimer: This content does not necessarily reflect the opinions of my employer.
    2. SPOF
    3. synchronous scripts blockall following elementsfrom renderingin all browsers
    4. #fail
    5. async#failasync sync async
    6. Frontend SPOF
    7. http://www.webpagetest.org/result/120529_41_HWV/
    8. entire BODY blocked from rendering
    9. http://www.webpagetest.org/result/120529_41_HWV/
    10. mysql>
    11. mysql> select p.url, wptid
    12. mysql> select p.url, wptidfrom pages as p, requests as r
    13. mysql> select p.url, wptidfrom pages as p, requests as rwhere p.pageid >= 844954 andp.pageid <= 1564447 andp.pageid = r.pageid and
    14. mysql> select p.url, wptidfrom pages as p, requests as rwhere p.pageid >= 844954 andp.pageid <= 1564447 andp.pageid = r.pageid andrank < 20000 and
    15. mysql> select p.url, wptidfrom pages as p, requests as rwhere p.pageid >= 844954 andp.pageid <= 1564447 andp.pageid = r.pageid andrank < 20000 andresp_content_type like “%script%” and
    16. mysql> select p.url, wptidfrom pages as p, requests as rwhere p.pageid >= 844954 andp.pageid <= 1564447 andp.pageid = r.pageid andrank < 20000 andresp_content_type like “%script%” andtime > 10000 and
    17. mysql> select p.url, wptidfrom pages as p, requests as rwhere p.pageid >= 844954 andp.pageid <= 1564447 andp.pageid = r.pageid andrank < 20000 andresp_content_type like “%script%” andtime > 10000 andrenderStart > 10000
    18. mysql> select p.url, wptidfrom pages as p, requests as rwhere p.pageid >= 844954 andp.pageid <= 1564447 andp.pageid = r.pageid andrank < 20000 andresp_content_type like “%script%” andtime > 10000 andrenderStart > 10000group by p.pageid;
    19. what’s your website’sweakest link?

    ×