Skip to content

Instantly share code, notes, and snippets.

@jonwaller
Last active December 25, 2015 19:09
Show Gist options
  • Save jonwaller/7025645 to your computer and use it in GitHub Desktop.
Save jonwaller/7025645 to your computer and use it in GitHub Desktop.
WebPerfDays NY
Prefetch/Prerender @igrigorik
------------------
Check out "connection view" in webpagetest
Can be fired through js too.
Uses Page Visibility API to not mess up analytics.
3rd party perf
--------------
3rd party is not:
JQuery
CDN
etc.
GPU/CSS
-------
Turn on continuous page repainting to test
Colt McAnlis
...it's stuff you can't control:
Analytics
- Beacons
Widgets
- Like/Tweet/RSS stream widget
Ads
AB testing/Shopping cart personailation (MotionPoint/SiteSpect)
If a 3rd party is down, it can slow/freeze your page load.
You can defer execution on JS (download, but run later)
You can add an onload to a script tag.
You can add "async" as a param to a script tag.
Goal: Defer download
lazyload/pospone param for images (draft spec)
async=false <- execute async loaded scripts in order (Write this in JS)
Try a SPOF (no third party) test <- With webpagetest
Responsive images
-----------------
srcset
http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good-thing/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment