Skip to content

Instantly share code, notes, and snippets.

View revnode's full-sized avatar
🏙️

Marat A. Denenberg revnode

🏙️
View GitHub Profile
@revnode
revnode / Link Prefetching
Created May 26, 2013 18:20
Link prefetching allows developers to specify pages or assets they want to silently preload once the page load, like loading the first search results.
@revnode
revnode / DNS Prefetching
Created May 26, 2013 18:19
DNS hostname resolution is one of the issues that can make any website slow. Modern browsers start to be very smart when it comes to DNS resolution, they try to resolve domain names then cache them before the user tries to follow any link on the webpage. With the dns-prefetch feature you are allowed to manually control this operation by telling …
<link rel="dns-prefetch" href="//fonts.googleapis.com">
<link rel="dns-prefetch" href="//google-analytics.com">
<link rel="dns-prefetch" href="//www.google-analytics.com">
<link rel="dns-prefetch" href="//platform.twitter.com">