1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Rohan Kumar
521beaebf4
Mention my use of priority hints 2022-09-05 21:48:53 -07:00
Rohan Kumar
5c9ddaaa59
Add app-ads.txt adtech opt-out 2022-09-05 21:46:30 -07:00
3 changed files with 5 additions and 4 deletions

View file

@ -163,10 +163,10 @@ Optimal loading is a complex topic. Broadly, it covers three overlapping categor
HTML is a blocking resource: images and stylesheets will not load until the user agent loads and parses the HTML that calls them. To start loading above-the-fold images before the HTML parsing finishes, send a "link" HTTP header. HTML is a blocking resource: images and stylesheets will not load until the user agent loads and parses the HTML that calls them. To start loading above-the-fold images before the HTML parsing finishes, send a "link" HTTP header.
My website includes a "link" header to load an SVG that serves as my IndieWeb photo and favicon (hash removed from filename for readability): my website includes a "link" header to load the image that serves as my IndieWeb photo and favicon. The header includes a "high" priority hint so the browser starts downloading the resource right away:
``` ```
link: </favicon.HASH.svg>; rel=preload; as=image link: </favicon.HASH.svg>; rel=preload; as=image; fetchpriority=high
``` ```
### Don't count on the cache ### Don't count on the cache

View file

@ -166,10 +166,10 @@ Optimal loading is a complex topic. Broadly, it covers three overlapping categor
HTML is a blocking resource: images and stylesheets will not load until the user agent loads and parses the HTML that calls them. To start loading above-the-fold images before the HTML parsing finishes, send a `link` HTTP header. HTML is a blocking resource: images and stylesheets will not load until the user agent loads and parses the HTML that calls them. To start loading above-the-fold images before the HTML parsing finishes, send a `link` HTTP header.
{{<codefigure>}} {{< codecaption >}} my website includes a `link` header to load an SVG that serves as my IndieWeb photo and favicon. Hash removed from filename for readability. {{< /codecaption >}} {{<codefigure>}} {{< codecaption >}} my website includes a `link` header to load the image that serves as my IndieWeb photo and favicon. The header includes a [priority hint](https://wicg.github.io/priority-hints/) so the browser starts downloading the resource right away. {{< /codecaption >}}
```figure {var1="HASH" samp=true} ```figure {var1="HASH" samp=true}
link: </favicon.HASH.svg>; rel=preload; as=image link: </favicon.HASH.svg>; rel=preload; as=image; fetchpriority=high
``` ```
{{</codefigure>}} {{</codefigure>}}

1
static/app-ads.txt Symbolic link
View file

@ -0,0 +1 @@
ads.txt