-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SVG push support and excluding favicons (#24)
* Add SVG push support * Update AddHttp2ServerPush.php * Adding page with SVG object * Adding tests for SVG in <img> and <object> tags * Adding SVG <img> * Update pageWithSVGObject.html * Excluding favicons When preloading favicon files (e.g. regular favicon or Apple touch icon), Chrome complains with the following message: > The resource https://example.net/favicon.png was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally. The syntax for icon files is like: ``` <link rel="icon" href="/favicon.png"> <link rel="apple-touch-icon-precomposed" href="/favicon-apple.png"/> ``` So excluding anything that contains `icon` somewhere in the `rel` attribute would exclude these from being preloaded. * Add files via upload * Adding test for favicons
- Loading branch information
1 parent
ac84d27
commit 79b1a8d
Showing
5 changed files
with
49 additions
and
4 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
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,12 @@ | ||
<html> | ||
|
||
<head> | ||
<title>Page title</title> | ||
<link rel="apple-touch-icon-precomposed" href="/favicon-apple.png"/> | ||
<link rel="icon" href="favicon.png"> | ||
</head> | ||
|
||
<body> | ||
</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
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,11 @@ | ||
<html> | ||
|
||
<head> | ||
<title>Page title</title> | ||
</head> | ||
|
||
<body> | ||
<object data="/images/vector.svg" type="image/svg+xml"></object> | ||
</body> | ||
|
||
</html> |