2 Running slow external script forces preloader to run for tokens below.
3 FIXME: remove this after https://crbug.com/421300 is closed.
5 <script type=
"text/javascript" src=
"/resources/slow-script.pl?delay=500"></script>
9 if (window
.internals
) {
10 var preloaded
= internals
.isPreloaded('/resources/network-simulator.php?command=increase-resource-count&path=/loading/resources/preload-test.jpg') ? "TRUE" : "FALSE";
11 window
.parent
.postMessage('Image was preloaded: '+preloaded
, '*');
13 window
.parent
.postMessage('imgload', '*');
16 <img src=
"/resources/network-simulator.php?command=increase-resource-count&path=/loading/resources/preload-test.jpg" onerror=
"window.parent.postMessage('imgerror', '*')" onload=
"onimgload()">