Chromium Code Reviews| Index: chrome/test/data/predictors/subresource_fcp_order.html |
| diff --git a/chrome/test/data/predictors/subresource_fcp_order.html b/chrome/test/data/predictors/subresource_fcp_order.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a961e2539fbf9703231fa0528b6b79c0963f661f |
| --- /dev/null |
| +++ b/chrome/test/data/predictors/subresource_fcp_order.html |
| @@ -0,0 +1,18 @@ |
| +<!DOCTYPE html> |
| +<html> |
| + <head> |
| + <title>Subresources collection</title> |
| + <link rel="stylesheet" href="/handled-by-test/style.css"> |
| + <script src="/handled-by-test/script.js"></script> |
| + </head> |
| + <body> |
| + <p>Hello world!</p> |
| + <script> |
| + document.body.style.backgroundColor = 'red'; |
|
alexilin
2017/04/21 13:49:05
Why do you need to change backgroundColor? Doesn't
trevordixon
2017/04/25 12:46:10
Doesn't appear to be necessary. Deleted.
|
| + // Using document.write would allow the preload scanner to pick up this |
| + // resource and throw off results. |
| + document.body.insertAdjacentHTML('beforeend', `<img src="google.png">`); |
| + </script> |
| + <script src="/handled-by-test/long-script.js"></script> |
| + </body> |
| +</html> |