Skip to content

Instantly share code, notes, and snippets.

@e-river
Created January 15, 2015 08:04
Show Gist options
  • Save e-river/0b649168d38e78064256 to your computer and use it in GitHub Desktop.
Save e-river/0b649168d38e78064256 to your computer and use it in GitHub Desktop.
- var links = ['//www.google-analytics.com', '//accounts.google.com', '//apis.google.com', '//oauth.googleusercontent.com', '//ssl.gstatic.com', '//www.facebook.com', '//connect.facebook.net', '//static.ak.facebook.com', '//static.ak.fbcdn.net', '//s-static.ak.facebook.com', '//twitter.com', '//cdn.api.twitter.com', '//p.twitter.com', '//platform.twitter.com', '//b.st-hatena.com', '//cdn-ak.b.st-hatena.com', '//cdn.api.b.hatena.ne.jp']
each val in links
link(href='#{val}', rel='dns-prefetch')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment