6. #WDC14
–Ben Vinegar, Author of “Third-Party Script”
“In the strictest sense, anything served to the
client that’s provided by an organization that’s
not the website provider is considered to be
third-party”
7. #WDC14
TYPES OF 3RD PARTY SCRIPTS
Ads
Tracking and Analytics
Fonts
Social Media
Libraries and Frameworks
23. #WDC14
The value you get out of the widget needs to be
greater than the performance hit you are taking
- John Hjelmstad
Google I/O 2012 (How we Make JavaScript Widgets Scream)
RULE OF THUMB
24. #WDC14
A user who has to endure an 8-second download delay
spends only 1% of their total viewing time looking at the
featured promotional space on a landing page.
In contrast, a user who receives instantaneous page rendering
spends 20% of viewing time within the promotional area
(source: Jakob Nielsen)
PERCEPTION OF PROMOTIONAL SPACE
75. #WDC14
“The Like button is the quickest way
for people to share content with their
friends.
A single click on the Like button will
'like' pieces of content on the web
and share them on Facebook.”
76. #WDC14
What they don’t tell you….
Track the visited website, your
IP, and more….????
Did you agree to that?
!
86. #WDC14
WHAT TO DO AS A PUBLISHER & DEVELOPER
• Refuse 3rd party content that doesn’t provide async options
• Put the risk in the SLA (uptime etc.)
• Review jsmanners
• Educate other (junior) developers
87. #WDC14
• Ask for server-side options
• Evaluate tag managers
• Investigate hosted libraries (if no own CDN is available)
• Monitor, monitor, ….and monitor
WHAT TO DO AS A PUBLISHER & DEVELOPER
88. #WDC14
WHAT TO DO AS A SCRIPT PROVIDER
• Provide non-blocking code samples and snippets
• Educate developers and verify the integration of your script developers
(proof-check)