3 <title>Preloader
</title>
5 <script src=
"prerender_events_common.js"></script>
8 function ExtractGetParameterBadlyAndInsecurely(param
, defaultValue
) {
9 var re
= RegExp('[&?]' + param
+ '=([^&?#]*)');
10 var result
= re
.exec(document
.location
);
16 var numLinksToInsert
=
17 ExtractGetParameterBadlyAndInsecurely('links_to_insert', 1);
19 function RemoveLinkElement(index
) {
20 var link
= document
.getElementById('prerenderElement' + index
);
21 link
.parentElement
.removeChild(link
);
27 for (var i
= 0; i
< numLinksToInsert
; ++i
) {
28 var link
= AddPrerender('REPLACE_WITH_DESTINATION_URL', i
);
29 link
.id
= 'prerenderElement' + i
;
32 <a id=
"toClick" href=
"REPLACE_WITH_DESTINATION_URL">Link To Click For First Prerender
</a>