-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add origins & sameOrigin suites
- Loading branch information
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Prefetch: Allowed Origins</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | ||
<script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script> | ||
</head> | ||
<body> | ||
<a href="https://example.com/1.html">Link 1</a> | ||
<a href="2.html">Link 2</a> | ||
<a href="https://github.githubassets.com/images/spinners/octocat-spinner-32.gif">Spinner</a> | ||
<section id="stuff"> | ||
<a href="main.css">CSS</a> | ||
</section> | ||
<a href="4.html" style="position:absolute;margin-top:900px;">Link 4</a> | ||
<script src="../dist/quicklink.umd.js"></script> | ||
<script> | ||
quicklink({ | ||
origins: ['github.githubassets.com', 'example.com'] | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Prefetch: Same Origin</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | ||
<script src="https://polyfill.io/v2/polyfill.min.js?features=IntersectionObserver"></script> | ||
</head> | ||
<body> | ||
<a href="https://example.com/1.html">Link 1</a> | ||
<a href="2.html">Link 2</a> | ||
<a href="https://github.githubassets.com/images/spinners/octocat-spinner-32.gif">Spinner</a> | ||
<section id="stuff"> | ||
<a href="main.css">CSS</a> | ||
</section> | ||
<a href="4.html" style="position:absolute;margin-top:900px;">Link 4</a> | ||
<script src="../dist/quicklink.umd.js"></script> | ||
<script> | ||
quicklink({ | ||
sameOrigin: true | ||
}); | ||
</script> | ||
</body> | ||
</html> |