Hasty Treat - The Weird and Wonderful Link Tag

Published: Aug. 16, 2021, 1 p.m.


In this Hasty Treat, Scott and Wes talk about the\xa0\xa0tag \u2014 why it\u2019s weird and wonderful, and what you can do with it!

Sanity - Sponsor

Sanity.io\xa0is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at\xa0sanity.io/create. Get an awesome supercharged free developer plan on\xa0sanity.io/syntax.

Sentry - Sponsor

If you want to know what\u2019s happening with your code, track errors and monitor performance with Sentry. Sentry\u2019s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting\xa0Sentry.io\xa0and using the coupon code TASTYTREAT during sign up.

Show Notes

04:16 - What is it?

  • https://ryanflorence.dev/p/ship-weird
  • The link tag is weird.
  • First, it\u2019s not for links! It\u2019s for establishing a relationship between the current HTML document and a resource.

05:11 - CSS / Media attr

07:13 - Web fonts

08:09 - Favicons

08:36 - Preload + Prefetch Resource

  • Audio, document, fetch, font, image, script, style, track, video, worker + more

10:15 - Fetch request (shoutout Ryan)

11:27 - Preconnect

  • Consider adding preconnect or dns-prefetch resource hints to establish early connections to important third-party origins.

13:01 - Module

13:30 - Integrity

  • SHA
Tweet us your tasty treats!