{"id":63687,"date":"2019-04-18T04:18:52","date_gmt":"2019-04-18T11:18:52","guid":{"rendered":"http:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/"},"modified":"2019-04-18T04:18:52","modified_gmt":"2019-04-18T11:18:52","slug":"optimizing-performance-with-resource-hints","status":"publish","type":"post","link":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/","title":{"rendered":"Optimizing Performance With Resource Hints"},"content":{"rendered":"<link rel=\"canonical\" href=\"https:\/\/www.smashingmagazine.com\/2019\/04\/optimization-performance-resource-hints\/\"><title>Optimizing Performance With Resource Hints<\/title><\/p>\n<article>\n<header>\n<h1>Optimizing Performance With Resource Hints<\/h1>\n<address>Drew McLellan<\/address>\n<p>                  <time datetime=\"2019-04-17T12:30:16+02:00\">2019-04-17T12:30:16+02:00<\/time><time datetime=\"2019-04-18T11:04:53+00:00\">2019-04-18T11:04:53+00:00<\/time><\/header>\n<p>Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights about what a user may be likely to do come from us, the developer.<\/p>\n<p>Take the example of paginated content, like a photo album. We know that if the user is looking at a photo in an album, the chance of them clicking the \u2018next\u2019 link to view the following image in the album is pretty high. The browser, however, doesn\u2019t really know that of all the links on the page, that\u2019s the one the user is most likely to click. To a browser, all those links carry equal weight.<\/p>\n<p>What if the browser could somehow know where the user was going next and could fetch the next page ahead of time so that when the user clicks the link the page load is much, much faster? That\u2019s in principal what Resource Hints are. They\u2019re <strong>a way for the developer to tell the browser about what\u2019s likely to happen in the future<\/strong> so that the browser can factor that into its choices for how it loads resources.<\/p>\n<p>All these resource hints use the <code>rel<\/code> attribute of the <code><link><\/code> element that you\u2019ll be familiar with finding in the <code><head><\/code> of your HTML documents. In this article we\u2019ll take a look at the main types of Resource Hints and when and where we can use them in our pages. We\u2019ll go from the small and subtle hints through to the big guns at the end.<\/p>\n<div data-component=\"FeaturePanel\" data-audience=\"non-subscriber\" data-remove=\"true\"><\/div>\n<h3>DNS Prefetching<\/h3>\n<p>A DNS lookup is the process of turning a human-friendly domain name like <code>example.com<\/code> into the machine-friendly IP address like <code>123.54.92.4<\/code> that is actually needed in order to fetch a resource.<\/p>\n<p>Every time you type a URL in the browser address bar, follow a link in a page or even load a resource like an image from a different domain, the browser needs to do a DNS lookup to find the server that holds the resource we\u2019ve requested. For a busy page with lots of external resources (like perhaps a news website with loads of ads and trackers), there might be dozens of DNS lookups required per page.<\/p>\n<p>The browser caches the results of these lookups, but they can be slow. One performance optimization technique is to reduce the number of DNS lookups required by organizing resources onto fewer domains. When that\u2019s not possible, you can warn the browser about the domains it\u2019s going to need to look up with the <code>dns-prefetch<\/code> resource hint.<\/p>\n<div>\n<pre><code><link rel=\"dns-prefetch\" href=\"https:\/\/images.example.com\">\n<\/code><\/pre>\n<\/div>\n<p>When the browser encounters this hint, it can start resolving the <code>images.example.com<\/code> domain name as soon as possible, even though it doesn\u2019t know how it\u2019ll be used yet. This enables the browser to get ahead of the game and do more work in parallel, decreasing the overall load time.<\/p>\n<h4>When Should I Use <code>dns-prefetch<\/code>?<\/h4>\n<p>Use <code>dns-prefetch<\/code> when your page uses resources from a different domain, to give the browser a head start. <a href=\"https:\/\/caniuse.com\/#search=dns-prefetch\">Browser support is really great<\/a>, but if a browser doesn\u2019t support it then no harm done \u2014 the prefetch just doesn\u2019t happen.<\/p>\n<p>Don\u2019t prefetch any domains you\u2019re <em>not<\/em> using, and if you find yourself wanting to prefetch a large number of domains you might be better to look at why all those domains are needed and if anything can be done to reduce the number.<\/p>\n<h3>Preconnecting<\/h3>\n<p>One step on from DNS prefetching is <em>preconnecting<\/em> to a server. Establishing a connection to a server hosting a resource takes several steps:<\/p>\n<ul>\n<li><strong>DNS lookup<\/strong> (as we\u2019ve just discussed);<\/li>\n<li><strong>TCP handshake<\/strong><br \/>\nA brief \u201cconversation\u201d between the browser and server to create the connection.<\/li>\n<li><strong>TLS negotiation on HTTPS sites<\/strong><br \/>\nThis verifies that the certificate information is valid and correct for the connection.<\/li>\n<\/ul>\n<p>This typically happens once per server and takes up valuable time \u2014 especially if the server is very distant from the browser and network latency is high. (This is where globally distributed CDNs really help!) In the same way that prefetching DNS can help the browser get ahead of the game before it sees what\u2019s coming, pre-connecting to a server can make sure that when the browser gets to the part of the page where a resource is needed, the slow work of establishing the connection has already taken place and the line is open and ready to go.<\/p>\n<pre><code><link rel=\"preconnect\" href=\"https:\/\/scripts.example.com\">\n<\/code><\/pre>\n<h4>When Should I Use <code>preconnect<\/code>?<\/h4>\n<p>Again, <a href=\"https:\/\/caniuse.com\/#search=preconnect\">browser support is strong<\/a> and there\u2019s no harm if a browser doesn\u2019t support preconnecting \u2014 the result will be just as it was before. Consider using preconnect when you know for sure that you\u2019re going to be accessing a resource and you want get ahead.<\/p>\n<p>Be careful not to preconnect and then not use the connection, as this will both slow your page down and tie up a tiny amount of resource on the server you connect to too.<\/p>\n<h3>Prefetching The Next Page<\/h3>\n<p>The two hints we\u2019ve looked at so far are primarily focussed on resources within the page being loaded. They might be useful to help the browser get ahead on images, scripts or fonts, for example. The next couple of hints are concerned more with navigation and predicting where the user might go <em>after<\/em> the page that\u2019s currently being loaded.<\/p>\n<p>The first of these is prefetching, and its link tag might look like this:<\/p>\n<div>\n<pre><code><link rel=\"prefetch\" href=\"https:\/\/example.com\/news\/?page=2\" as=\"document\">\n<\/code><\/pre>\n<\/div>\n<p>This tells the browser that it can go ahead and fetch a page in the background so that it\u2019s ready to go when requested. There\u2019s a bit of a gamble here because you have to preempt where you think the user will navigate next. Get it right, and the next page might appear to load really quickly. Get it wrong, and you\u2019ve wasted time and resources in downloading something that isn\u2019t going to be used. If the user is on a metered connection like a limited mobile phone plan, you might actually cost them real money.<\/p>\n<p>When a prefetch takes place, the browser does the DNS lookup and makes the server connection we\u2019ve seen in the previous two types of hint, but then goes a step further and actually requests and downloads the files. It stops at that point, however, and the files are not parsed or executed and they are in no way applied to the current page. They\u2019re just requested and kept ready.<\/p>\n<p>You might think of a prefetch as being a bit like adding a file to the browser\u2019s cache. Instead of needing to go out to the server and download it when the user clicks the link, the file can be pulled out of memory and used much quicker.<\/p>\n<div><\/div>\n<h4>The <code>as<\/code> Attribute<\/h4>\n<p>In the example above, you can see that we\u2019re setting the <code>as<\/code> attribute to <code>as=\"document\"<\/code>. This is an optional attribute that tells that browser that what we\u2019re fetching should be handled as a document (i.e. a web page). This enables the browser to set the same sort of request headers and security policies as if we\u2019d just followed a link to a new page.<\/p>\n<p>There are lots of possible values for the <code>as<\/code> attribute by enabling the browser to handle different types of prefetch in the appropriate way.<\/p>\n<\/p>\n<table>\n<thead>\n<tr>\n<th data-tablesaw-priority=\"persist\">Value of <code>as<\/code><\/th>\n<th>Type of resource<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>audio<\/code><\/td>\n<td>Sound and music files<\/td>\n<\/tr>\n<tr>\n<td><code>video<\/code><\/td>\n<td>Video<\/td>\n<\/tr>\n<tr>\n<td><code>Track<\/code><\/td>\n<td>Video or audio WebVTT tracks<\/td>\n<\/tr>\n<tr>\n<td><code>script<\/code><\/td>\n<td>JavaScript files<\/td>\n<\/tr>\n<tr>\n<td><code>style<\/code><\/td>\n<td>CSS style sheets<\/td>\n<\/tr>\n<tr>\n<td><code>font<\/code><\/td>\n<td>Web fonts<\/td>\n<\/tr>\n<tr>\n<td><code>image<\/code><\/td>\n<td>Images<\/td>\n<\/tr>\n<tr>\n<td><code>fetch<\/code><\/td>\n<td>XHR and Fetch API requests<\/td>\n<\/tr>\n<tr>\n<td><code>worker<\/code><\/td>\n<td>Web workers<\/td>\n<\/tr>\n<tr>\n<td><code>embed<\/code><\/td>\n<td>Multimedia <code><\/code> requests<\/td>\n<\/tr>\n<tr>\n<td><code>object<\/code><\/td>\n<td>Multimedia <code><object><\/code> requests <\/td>\n<\/tr>\n<tr>\n<td><code>document<\/code><\/td>\n<td>Web pages<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><em>The different values that can be used to specify resource types with the <code>as<\/code> attribute.<\/em><\/p>\n<h4>When Should I Use <code>prefetch<\/code>?<\/h4>\n<p>Again <code>prefetch<\/code> has <a href=\"https:\/\/caniuse.com\/#search=prefetch\">great browser support<\/a>. You should use it when you have a reasonable amount of certainty of the user might follow through your site if you believe that speeding up the navigation will positively impact the user experience. This should be weighed against the risk of wasting resources by possibly fetching a resource that isn\u2019t then used.<\/p>\n<h3>Prerendering The Next Page<\/h3>\n<p>With <code>prefetch<\/code>, we\u2019ve seen how the browser can download the files in the background ready to use, but also noted that nothing more was done with them at that point. Prerendering goes one step further and executes the files, doing pretty much all the work required to display the page except for actually displaying it.<\/p>\n<p>This might include parsing the resource for any <em>subresources<\/em> such as JavaScript files and images and prefetching those as well.<\/p>\n<div>\n<pre><code><link rel=\"prerender\" href=\"https:\/\/example.com\/news\/?page=2\">\n<\/code><\/pre>\n<\/div>\n<p>This really can make the following page load feel instantaneous, with the sort of snappy load performance you might see when hitting your browser\u2019s <em>back<\/em> button. The gamble is even greater here, however, as you\u2019re not only spending time requesting and downloading the files, but executing them along with any JavaScript and such. This could use up memory and CPU (and therefore battery) that the user won\u2019t see the benefit for if they end up not requesting the page.<\/p>\n<h4>When Should I Use <code>prerender<\/code>?<\/h4>\n<p><a href=\"https:\/\/caniuse.com\/#search=prerender\">Browser support<\/a> for <code>prerender<\/code> is currently very restricted, with really only Chrome and old IE (not Edge) offering support for the option. This might limit its usefulness unless you happen to be specifically targeting Chrome. Again it\u2019s a case of \u201cno harm, no foul\u201d as the user won\u2019t see the benefit but it won\u2019t cause any issues for them if not.<\/p>\n<div><\/div>\n<h3>Putting Resource Hints To Use<\/h3>\n<p>We\u2019ve already seen how resource hints can be used in the <code><head><\/code> of an HTML document using the <code><link><\/code> tag. That\u2019s probably the most convenient way to do it, but you can also achieve the same with the <code>Link:<\/code> HTTP header.<\/p>\n<p>For example, to prefetch with an HTTP header:<\/p>\n<div>\n<pre><code>Link: <https:\/\/example.com\/logo.png>; rel=prefetch; as=image;\n<\/code><\/pre>\n<\/div>\n<p>You can also use JavaScript to dynamically apply resource hints, perhaps in response to use interaction. To use an example from the W3C spec document:<\/p>\n<pre><code>var hint  = document.createElement(\"link\");\nhint.rel  = \"prefetch\";\nhint.as   = \"document\";\nhint.href = \"\/article\/part3.html\";\ndocument.head.appendChild(hint);\n<\/code><\/pre>\n<p>This opens up some interesting possibilities, as it\u2019s potentially easier to predict where the user might navigate next based on how they interact with the page.<\/p>\n<h3>Things To Note<\/h3>\n<p>We\u2019ve looked at four progressively more aggressive ways of preloading resources, from the lightest touch of just resolving DNS through to rending a complete page ready to go in the background. It\u2019s important to remember that these hints are just that; they\u2019re hints of <strong>ways the browser could optimize performance<\/strong>. They\u2019re not directives. The browser can take our suggestions and use its best judgement in deciding how to respond.<\/p>\n<p>This might mean that on a busy or overstretched device, the browser doesn\u2019t attempt to respond to the hints at all. If the browser knows it\u2019s on a metered connection, it might prefetch DNS but not entire resources, for example. If memory is low, the browser might again decide that it\u2019s not worth fetching the next page until the current one has been offloaded.<\/p>\n<p>The reality is that on a desktop browser, the hints will likely all be followed as the developer suggests, but be aware that it\u2019s up to the browser in every case.<\/p>\n<h4>The Importance Of Maintenance<\/h4>\n<p>If you\u2019ve worked with the web for more than a couple of years, you\u2019ll be familiar with the fact that if something on a page is unseen then it can often become neglected. Hidden metadata (such as page descriptions) is a good example of this. If the people looking after the site can\u2019t readily see the data, then it can easily become neglected and drift out of date.<\/p>\n<p>This is a real risk with resource hints. As the code is hidden away and goes pretty much undetected in use, it would be very easy for the page to change and any resource hints to go un-updated. The consequence of say, prefetching a page that you don\u2019t use, means that the tools you\u2019ve put in place to improve the performances of your site are then actively harming it. So having good procedures in place to key your resource hints up to date becomes really, <em>really<\/em> important.<\/p>\n<h4>Resources<\/h4>\n<ul>\n<li>\u201c<a href=\"https:\/\/www.w3.org\/TR\/resource-hints\/\">Resource Hints specification<\/a>,\u201d W3C<\/li>\n<li>\u201c<a href=\"https:\/\/addyosmani.com\/blog\/prefetching\/\">Speed Up Next-Page Navigations With Prefetching<\/a>,\u201d Addy Osmani<\/li>\n<\/ul>\n<div>\n  <img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-13.png?w=900\" alt=\"Smashing Editorial\"><span>(il)<\/span>\n<\/div>\n<\/article>\n<p class=\"wpematico_credit\"><small>Powered by <a href=\"http:\/\/www.wpematico.com\" target=\"_blank\">WPeMatico<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Optimizing Performance With Resource Hints Optimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00 Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the&#8230;<a class=\"moretag\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/\"> Read the full article&#8230;<\/a><\/p>\n","protected":false},"author":4,"featured_media":63688,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[371],"tags":[],"class_list":["post-63687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-user-experience"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Guest Contribution\"\/>\n\t<meta name=\"keywords\" content=\"user experience\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Optimizing Performance With Resource Hints | Design for Immersive Technologies\" \/>\n\t\t<meta property=\"og:description\" content=\"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-04-18T11:18:52+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-04-18T11:18:52+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Optimizing Performance With Resource Hints | Design for Immersive Technologies\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#article\",\"name\":\"Optimizing Performance With Resource Hints | Design for Immersive Technologies\",\"headline\":\"Optimizing Performance With Resource Hints\",\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/logo-red-13.png?fit=60%2C80&ssl=1\",\"width\":60,\"height\":80},\"datePublished\":\"2019-04-18T04:18:52-07:00\",\"dateModified\":\"2019-04-18T04:18:52-07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#webpage\"},\"articleSection\":\"User Experience\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"name\":\"User Experience\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"position\":2,\"name\":\"User Experience\",\"item\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#listItem\",\"name\":\"Optimizing Performance With Resource Hints\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#listItem\",\"position\":3,\"name\":\"Optimizing Performance With Resource Hints\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/category\\\/user-experience\\\/#listItem\",\"name\":\"User Experience\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/\",\"name\":\"Guest Contribution\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Guest Contribution\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#webpage\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/\",\"name\":\"Optimizing Performance With Resource Hints | Design for Immersive Technologies\",\"description\":\"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\\u2019t know much about our site or application as a whole, though, and often the best insights\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/author\\\/guestcontribution\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.taterboy.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/04\\\/logo-red-13.png?fit=60%2C80&ssl=1\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#mainImage\",\"width\":60,\"height\":80},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/2019\\\/04\\\/optimizing-performance-with-resource-hints\\\/#mainImage\"},\"datePublished\":\"2019-04-18T04:18:52-07:00\",\"dateModified\":\"2019-04-18T04:18:52-07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/\",\"name\":\"Design for Immersive Technologies\",\"description\":\"User Experience for Games, Virtual Reality (VR) and Augmented\\\/Mixed Reality (AR\\\/MR)\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.taterboy.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Optimizing Performance With Resource Hints | Design for Immersive Technologies","description":"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights","canonical_url":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/","robots":"max-image-preview:large","keywords":"user experience","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#article","name":"Optimizing Performance With Resource Hints | Design for Immersive Technologies","headline":"Optimizing Performance With Resource Hints","author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-13.png?fit=60%2C80&ssl=1","width":60,"height":80},"datePublished":"2019-04-18T04:18:52-07:00","dateModified":"2019-04-18T04:18:52-07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#webpage"},"isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#webpage"},"articleSection":"User Experience"},{"@type":"BreadcrumbList","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.taterboy.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","name":"User Experience"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","position":2,"name":"User Experience","item":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#listItem","name":"Optimizing Performance With Resource Hints"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#listItem","position":3,"name":"Optimizing Performance With Resource Hints","previousItem":{"@type":"ListItem","@id":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/#listItem","name":"User Experience"}}]},{"@type":"Organization","@id":"https:\/\/www.taterboy.com\/blog\/#organization","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","url":"https:\/\/www.taterboy.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author","url":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/","name":"Guest Contribution","image":{"@type":"ImageObject","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d2aad73eb0f48c67b141e9fc978a0e498969791ed623346e361d02d19775b0bb?s=96&d=mm&r=g","width":96,"height":96,"caption":"Guest Contribution"}},{"@type":"WebPage","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#webpage","url":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/","name":"Optimizing Performance With Resource Hints | Design for Immersive Technologies","description":"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.taterboy.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#breadcrumblist"},"author":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"creator":{"@id":"https:\/\/www.taterboy.com\/blog\/author\/guestcontribution\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-13.png?fit=60%2C80&ssl=1","@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#mainImage","width":60,"height":80},"primaryImageOfPage":{"@id":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/#mainImage"},"datePublished":"2019-04-18T04:18:52-07:00","dateModified":"2019-04-18T04:18:52-07:00"},{"@type":"WebSite","@id":"https:\/\/www.taterboy.com\/blog\/#website","url":"https:\/\/www.taterboy.com\/blog\/","name":"Design for Immersive Technologies","description":"User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.taterboy.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Design for Immersive Technologies | User Experience for Games, Virtual Reality (VR) and Augmented\/Mixed Reality (AR\/MR)","og:type":"article","og:title":"Optimizing Performance With Resource Hints | Design for Immersive Technologies","og:description":"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights","og:url":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/","article:published_time":"2019-04-18T11:18:52+00:00","article:modified_time":"2019-04-18T11:18:52+00:00","twitter:card":"summary","twitter:title":"Optimizing Performance With Resource Hints | Design for Immersive Technologies","twitter:description":"Optimizing Performance With Resource HintsOptimizing Performance With Resource Hints Drew McLellan 2019-04-17T12:30:16+02:002019-04-18T11:04:53+00:00Modern web browsers use all sorts of techniques to help improve page load performance by guessing what the user may be likely to do next. The browser doesn\u2019t know much about our site or application as a whole, though, and often the best insights"},"aioseo_meta_data":{"post_id":"63687","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2021-02-07 20:56:30","updated":"2026-09-01 08:48:53","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/\" title=\"User Experience\">User Experience<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tOptimizing Performance With Resource Hints\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.taterboy.com\/blog"},{"label":"User Experience","link":"https:\/\/www.taterboy.com\/blog\/category\/user-experience\/"},{"label":"Optimizing Performance With Resource Hints","link":"https:\/\/www.taterboy.com\/blog\/2019\/04\/optimizing-performance-with-resource-hints\/"}],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8wzr5-gzd","jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.taterboy.com\/blog\/wp-content\/uploads\/2019\/04\/logo-red-13.png?fit=60%2C80&ssl=1","_links":{"self":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/63687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/comments?post=63687"}],"version-history":[{"count":0,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/posts\/63687\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media\/63688"}],"wp:attachment":[{"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/media?parent=63687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/categories?post=63687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taterboy.com\/blog\/wp-json\/wp\/v2\/tags?post=63687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}