mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Clarification on HTTP/2
Thanks, reezer!
This commit is contained in:
parent
0d11909002
commit
1ba46835be
2 changed files with 14 additions and 8 deletions
|
@ -19,15 +19,17 @@ I realize not everybody's going to ditch the Web and switch to Gemini or Gopher
|
||||||
* No lazy loading (more on this below)
|
* No lazy loading (more on this below)
|
||||||
* No custom colors OR explicitly set the both foreground and background colors. More on this below.
|
* No custom colors OR explicitly set the both foreground and background colors. More on this below.
|
||||||
* A maximum line length for readability
|
* A maximum line length for readability
|
||||||
* Server configured to support compression (gzip, optionally zstd as well) and HTTP/2. It's a free speed boost.
|
* Server configured to support compression (gzip, optionally zstd as well). It's a free speed boost.
|
||||||
* Supports dark mode via a CSS media feature and/or works with most "dark mode" browser addons. More on this below.
|
* Supports dark mode via a CSS media feature and/or works with most "dark mode" browser addons. More on this below.
|
||||||
* A good score on Mozilla's HTTP Observatory
|
* A good score on Mozilla's HTTP Observatory
|
||||||
* Optimized images. More on this below.
|
* Optimized images. More on this below.
|
||||||
|
* Maybe HTTP/2. There are some cases in which HTTP/2 can make things slower. Run some tests to find out.
|
||||||
|
|
||||||
=> https://observatory.mozilla.org/ HTTP Observatory
|
=> https://observatory.mozilla.org/ HTTP Observatory
|
||||||
=> https://github.com/shssoichiro/oxipng Oxipng
|
|
||||||
|
|
||||||
Early rough drafts of this post generated some feedback I thought I should address below. Special thanks to the eight IRC users who provided feedback!
|
Earlier revisions of this post generated some responses I thought I should address below. Special thanks to the IRC and Lobsters users who gave good feedback!
|
||||||
|
|
||||||
|
=> https://lobste.rs/s/akcw1m Lobsters thread
|
||||||
|
|
||||||
## About fonts
|
## About fonts
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,8 @@ apply to websites that have a lot of non-textual content. It also does not apply
|
||||||
websites that focus more on generating revenue or pleasing investors than being good
|
websites that focus more on generating revenue or pleasing investors than being good
|
||||||
websites.*
|
websites.*
|
||||||
|
|
||||||
This is a "living document" that I add to as I receive feedback. See the [changelog](https://git.sr.ht/~seirdy/seirdy.one/log/master/content/posts/website-best-practices.md).
|
This is a "living document" that I add to as I receive feedback. See the
|
||||||
|
[changelog](https://git.sr.ht/~seirdy/seirdy.one/log/master/content/posts/website-best-practices.md).
|
||||||
|
|
||||||
I realize not everybody's going to ditch the Web and switch to Gemini or Gopher today
|
I realize not everybody's going to ditch the Web and switch to Gemini or Gopher today
|
||||||
(that'll take, like, a month at the longest). Until that happens, here's a
|
(that'll take, like, a month at the longest). Until that happens, here's a
|
||||||
|
@ -39,19 +40,22 @@ primarily on text:
|
||||||
- No custom colors OR explicitly set the both foreground and background colors. More
|
- No custom colors OR explicitly set the both foreground and background colors. More
|
||||||
on this below.
|
on this below.
|
||||||
- A maximum line length for readability
|
- A maximum line length for readability
|
||||||
- Server configured to support compression (gzip, optionally zstd as well) and
|
- Server configured to support compression (gzip, optionally zstd as well). It's a
|
||||||
HTTP/2. It's a free speed boost.
|
free speed boost.
|
||||||
- Supports dark mode via a CSS media feature and/or works with most "dark mode"
|
- Supports dark mode via a CSS media feature and/or works with most "dark mode"
|
||||||
browser addons. More on this below.
|
browser addons. More on this below.
|
||||||
- A good score on Mozilla's [HTTP Observatory](https://observatory.mozilla.org/)
|
- A good score on Mozilla's [HTTP Observatory](https://observatory.mozilla.org/)
|
||||||
- Optimized images.
|
- Optimized images.
|
||||||
|
- Maybe HTTP/2. There are some cases in which HTTP/2 can make things slower. Run some
|
||||||
|
tests to find out.
|
||||||
|
|
||||||
I'd like to re-iterate yet another time that this only applies to websites that
|
I'd like to re-iterate yet another time that this only applies to websites that
|
||||||
primarily focus on text. If graphics, interactivity, etc. are an important part of
|
primarily focus on text. If graphics, interactivity, etc. are an important part of
|
||||||
your website, less (possibly none) of this article applies.
|
your website, less (possibly none) of this article applies.
|
||||||
|
|
||||||
Early rough drafts of this post generated some feedback I thought I should address
|
Earlier revisions of this post generated some responses I thought I should address
|
||||||
below. Special thanks to the eight IRC users who provided feedback!
|
below. Special thanks to the IRC and [Lobsters](https://lobste.rs/s/akcw1m) users who
|
||||||
|
gave good feedback!
|
||||||
|
|
||||||
About fonts
|
About fonts
|
||||||
-----------
|
-----------
|
||||||
|
|
Loading…
Reference in a new issue