Chrome Instant Page/ Prerendering – what is it and how can I use it?

 

image.png

With the Version 13 of Chrome Google activated a new feature named “Instant Page”. It’s another step into “making the web faster”. What “instant page” is shows this video:

Of course Google integrated the feature into the Google search page.

What’s the function of Google Instant Page?

The basic principle is quite simple: While the user is checking the search results for fitting answers the first matches are loading in the background. The consequence is that the first search results appear directly if you click on the link in the Google search. Cool Feature and very clever.

There are some scenarios where this could be very useful. For example searching pages or Wizard-pages or multilateral articles – on all alternatives it’s possible that the user clicks on the searching results or enters the next side.

Beware – you should use it careful

Here is the little challenge: To do this with every link is the wrong way because of this files will be transmitted senseless which has bad results for the user and for the provider – a lot of traffic but without visitors.

Testpage

Google offers a simple testpage which tests if Prerender is activated or not (the page is only interesting in Chrome): http://prerender-test.appspot.com/

Okay, how does this work?

On the Chrome Developer Side there are some interesting things but in fact the implementation is very easy. To find out how many traffic accrues I take a look on the Network Tab of the Chrome Dev Tools and I use Fiddler.

Following HTML Code without Prerendering:

<!DOCTYPE html>

<html>

<head>

    <meta charset="utf-8" />

    <title>Index</title>

</head>

<body>

<a href="http://code-inside.de/blog">Link Code Inside</a>

</body>

</html>

There is just a Request/Response and a Favicon will be searched (doesn’t matter at the moment). No surprise so far.

image

If you are navigating to the link Code-Inside.int it’s going to load in this moment = slow.

Activate Prerendering

If we want to activate Prerendering now all we have to do is to add this line into <head>:

<link rel="prerender" href="http://code-inside.de/blog">

Now you can see in the Chrome Dev Tools that the address is requested but there are no other files shown – only with Chrome 14 we will get new information’s.

image

A few into Fiddler will give us more information’s. With the Prerendering all needed files will be downloaded:

image

Now the side appears with a click.

Compendium

Prerendering is an interesting technology which will be used from other browser providers soon. But, as I said before it’s not useful to use it with every link.

Technical you can activate it with <link rel=”prerender”href=”…”>. Assumption is of course that the browser knows it – which is only possible with Chrome Version 13 at the moment.

Forecast

Google proposed a Page Visibility API to afford the side provider to see what the browser “see” while prerendering.

[Democode on Google Code / Download as Zip]

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

About the author

Written by Code Inside Team

Learn more about our team.

Comment on this post

Recent Posts

  • Automated Security Analyser for ASP.NET websites

    Evil Hackers are lurking everywhere and many Web-applications are delicately and share “too much” with the attacker. A quick (first!) overview offers the Tool “ASafaWeb”. All the website does is making a few requests and writing an Analyses including problem solving’s. There are no permanent disadvantages (bad requests/ DoS attacks and so on). Example: KnowYourStack.com ...

  • image1489-570x194.png
    „Sign in with Twitter“ for your own ASP.NET WebApp

      “Sign in with Twitter” is a popular practice to authenticate the users on your website. One advantage compared to an own registration is the lower inhibition for the user. But on the other hand Twitter doesn’t fess up with all the information’s and you will get into a kind of addiction. At the end ...

  • image1485-570x194_thumb.png
    CodePlex is going to be updated

      CodePlex the Microsoft Open Source Project Hosting Plattform hasn’t changed that much in the last few years and for a few times I thought Microsoft stopped the whole developing process. But now I found out that there is still life in the project. Maybe it is because of the success of GitHub or because ...

  • image1474_thumb.png
    What does Adobe in the flash-free web? Magazine-Style Layouts with CSS Regions!

      Adobe is well known for Photoshop and Flash but of course there is a lot more. According to the “Future Post” from Google Adobe declared one of their big subjects on a Blogpost. I’m talking about the W3C Working Draft to CSS Regions. Adobe cooperates with the WebKit Team and W3C on this. What ...

  • image1471-523x194.png
    HTML 5 Games, Tooling & 3D

      Game Developing is an interesting subject for all kind of software developer. But as a web developer without any Flash-skills there aren’t that much starting points. With HTML5 and the combination between Javascript, CSS3 and fast browsers there are the first “robust” HTML5 games. HTML5 games? Is this real? Neowin created a “Top 10” ...

Support us