зеркало из https://github.com/mozilla/gecko-dev.git
20 строки
752 B
HTML
20 строки
752 B
HTML
<!DOCTYPE html>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/preload/resources/preload_helper.js"></script>
|
|
<script>
|
|
var t = async_test('Makes sure that Link headers preload resources');
|
|
</script>
|
|
<body>
|
|
<script src="resources/dummy.js?pipe=trickle(d5)&link-header-preload"></script>
|
|
<script>
|
|
window.addEventListener("load", t.step_func(function() {
|
|
verifyPreloadAndRTSupport();
|
|
verifyNumberOfDownloads("resources/square.png?link-header-preload", 1);
|
|
verifyNumberOfDownloads("resources/dummy.js?link-header-preload", 1);
|
|
verifyNumberOfDownloads("resources/dummy.css?link-header-preload", 1);
|
|
t.done();
|
|
}));
|
|
</script>
|
|
</body>
|