-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
288fab9
commit 57c5afc
Showing
2 changed files
with
13 additions
and
17 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 |
---|---|---|
|
@@ -4,6 +4,13 @@ | |
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Sample Page with Polyfill.io</title> | ||
|
||
<!-- Polyfill assets --> | ||
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script> | ||
<script src="http://polyfill.io/v3/polyfill.min.js?features=es6"></script> | ||
<script src="//polyfill.io/v3/polyfill.min.js?features=Array.prototype.includes"></script> | ||
|
||
<script src="/assets/main.js"></script> | ||
<link | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" | ||
rel="stylesheet" | ||
|
@@ -29,16 +36,12 @@ <h1 class="text-2xl font-bold mb-4 text-blue-500">Hello, World!</h1> | |
<p class="mb-4 text-base text-gray-600"> | ||
This page uses an edge function to replace script references from | ||
polyfill.io to cdnjs.cloudflare.com for enhanced security and | ||
performance. | ||
performance. The code block below shows the current HTML document source | ||
after the edge function has processed it. | ||
<a href="/polyfill.io-usage" class="text-blue-500" | ||
>View the original source code.</a | ||
> | ||
</p> | ||
<script src="https://polyfill.io/v3/polyfill.min.js?features=default"></script> | ||
<script src="http://polyfill.io/v3/polyfill.min.js?features=es6"></script> | ||
<script src="//polyfill.io/v3/polyfill.min.js?features=Array.prototype.includes"></script> | ||
<script> | ||
// Sample JavaScript code | ||
console.log('Sample JavaScript code running...'); | ||
</script> | ||
<script src="/assets/main.js"></script> | ||
</div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"></script> | ||
</body> | ||
|