Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: LayoutTests/http/tests/loading/script-priorities.html

Issue 457413002: Defer late and async scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Lower priorities for late/async scripts Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/loading/script-priorities.html
diff --git a/LayoutTests/http/tests/loading/script-priorities.html b/LayoutTests/http/tests/loading/script-priorities.html
new file mode 100644
index 0000000000000000000000000000000000000000..be185336e12b1752d77cf4b2ae1ad776c2b7f964
--- /dev/null
+++ b/LayoutTests/http/tests/loading/script-priorities.html
@@ -0,0 +1,25 @@
+<html>
+ <head>
+ <script>
+ if (window.testRunner) {
+ testRunner.dumpResourceRequestPriorities();
+ testRunner.dumpAsText();
+ }
+ </script>
+ <script src="/js-test-resources/js-test.js"></script>
+ <script src="../misc/resources/defer-script.js" defer></script>
+ <script src="../misc/resources/async-script.js" async></script>
+ <script src="resources/head.js"></script>
+ <script>
+ var script = document.createElement('script');
+ script.src = "resources/injected.js";
+ document.getElementsByTagName('head')[0].appendChild(script);
+ </script>
+ </head>
+ <body>
+ <script src="resources/body.js"></script>
+ <script>
+ document.write('<script src="resources/document-write.js"><\/script>');
+ </script>
+ </body>
+</html>
« no previous file with comments | « LayoutTests/http/tests/loading/resources/injected.js ('k') | LayoutTests/http/tests/loading/script-priorities-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698