3 Make sure prerendering doesn't load NaCl plugins when disabled.
6 <title>Prerender NaCl Disabled</title>
11 var pluginLoadStarted = false;
13 function eventListener(event) {
14 var targetElement = event.target;
15 if (event.target.id != 'naclPlugin')
17 pluginLoadStarted = true;
20 document.body.addEventListener('loadstart', eventListener, true);
22 function DidPrerenderPass() {
23 return !pluginLoadStarted;
26 function DidDisplayPass() {
27 return !pluginLoadStarted;
31 <embed id="naclPlugin" type="application/x-nacl" src="dummy.nmf"></embed>