A Tasty Treats Podcast for Web Developers.

Ask a Potluck Question →
Wes Bos

Wes Bos

Full Stack JavaScript Developer. Creator of really good web development courses. BBQ enthusiast.

Scott Tolinski

Scott Tolinski

Web Developer, Creator of Level Up Tuts, Bboy, Robotops Crew and Youtuber

Playing: 379: Hasty Treat - The Weird and Wonderful <link> Tag

0:00

LOUDNESS

Aug 16th, 2021

Hasty Treat - The Weird and Wonderful <link> Tag

👇 Download Show✏️ Edit Show Notes

In this Hasty Treat, Scott and Wes talk about the <link> tag — why it's weird and wonderful, and what you can do with it!

Sanity - Sponsor

Sanity.io is 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 sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax.

Sentry - Sponsor

If you want to know what’s happening with your code, track errors and monitor performance with Sentry. Sentry’s 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 Sentry.io and using the coupon code TASTYTREAT during sign up.

Show Notes

04:16 - What is it?

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.
  • <link rel="preconnect" href="[https://fonts.googleapis.com](https://fonts.googleapis.com/)">
  • <link rel="preconnect" href="[https://fonts.gstatic.com](https://fonts.gstatic.com/)" crossorigin>

13:01 - Module

  • <link rel="modulepreload" href="/chunk-12131.js">

13:30 - Integrity

  • SHA

Tweet us your tasty treats!