lundi 13 juin 2016

How can I prerender a page that will open in a new tab?

I'm trying to prerender a page that will open as a new tab (right now I'm using an <a target="_blank">). However, when I click on the link after it has prerendered, it doesn't work. When I take the target out, it works.

How can I have prerender work when I want the page to open as a new tab?

Here's some code I've tested with:

Doesn't work:

<a target="_blank" href="http://example.com/">
    Test 1
    <link rel="prerender" href="http://example.com/">
</a>

Works:

<a href="http://example.com/">
    Test 2
    <link rel="prerender" href="http://example.com/">
</a>

Aucun commentaire:

Enregistrer un commentaire