Slide 1

Slide 1 text

WEB PERFORMANCE FONTASTIC

Slide 2

Slide 2 text

@notwaldorf

Slide 3

Slide 3 text

of websites use web fonts 68%

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

Slide 9

Slide 9 text

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto-Regular'), url(https://font.woff2) format('woff2'); unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; }

Slide 10

Slide 10 text

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; src: local('Roboto'), local('Roboto-Regular'), url(https://font.woff2) format('woff2'); unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; } div { font-family: Roboto, sans-serif; }

Slide 11

Slide 11 text

THE MITT ROMNEY WEB FONT PROBLEM /ZACH LEATHERMAN “

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

FOUT I

Slide 15

Slide 15 text

FOUT FOUT I

Slide 16

Slide 16 text

THE BROWSER HAS A TON OF OPINIONS

Slide 17

Slide 17 text

THE BROWSER HAS A TON OF OPINIONS ESPECIALLY ABOUT FONTS

Slide 18

Slide 18 text

index.html

Slide 19

Slide 19 text

index.html

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

Slide 23

Slide 23 text

…/css?family=Roboto:400

Slide 24

Slide 24 text

…/css?family=Roboto:400 @font-face { font-family: ‘Roboto’; font-style: normal; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format('woff2'); }

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

div { font-family: Roboto, sans-serif; }

Slide 28

Slide 28 text

@font-face { font-family: ‘Roboto’; font-style: normal; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format('woff2'); }

Slide 29

Slide 29 text

div { font-family: Roboto, sans-serif; } Do I HAVE Roboto YET?

Slide 30

Slide 30 text

div { font-family: Roboto, sans-serif; } RENDER

Slide 31

Slide 31 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK

Slide 32

Slide 32 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK Do I HAVE Roboto YET?

Slide 33

Slide 33 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK

Slide 34

Slide 34 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK SWAP

Slide 35

Slide 35 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK SWAP Do I HAVE Roboto YET?

Slide 36

Slide 36 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK SWAP

Slide 37

Slide 37 text

div { font-family: Roboto, sans-serif; } RENDER BLOCK SWAP FAIL

Slide 38

Slide 38 text

WHICH LOOKS LIKE THIS

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

FOIT BLOCK

Slide 42

Slide 42 text

FOIT FOUT BLOCK SWAP

Slide 43

Slide 43 text

AMAZING. now what.

Slide 44

Slide 44 text

FOIT IS WAAAY WORSE THAN FOUT

Slide 45

Slide 45 text

MINIMIZE FOIT YOU COULD JUST... NOT... USE WEBFONTS

Slide 46

Slide 46 text

MINIMIZE FOIT SHAKE IT OFF

Slide 47

Slide 47 text

MINIMIZE FOIT DOWNLOAD FEWER THINGS

Slide 48

Slide 48 text

MINIMIZE FOIT DOWNLOAD FEWER THINGS @font-face { font-family: 'Roboto'; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format(‘woff2'); }

Slide 49

Slide 49 text

MINIMIZE FOIT DOWNLOAD EVEN FEWER THINGS

Slide 50

Slide 50 text

MINIMIZE FOIT DOWNLOAD EVEN FEWER THINGS @font-face { font-family: 'Roboto'; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format('woff2'); unicode-range: U+0-A0; }

Slide 51

Slide 51 text

MINIMIZE FOIT DOWNLOAD EVEN FEWER THINGS EARLIER

Slide 52

Slide 52 text

MINIMIZE FOIT @font-face { font-family: 'Roboto'; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format(‘woff2'); } DOWNLOAD EVEN FEWER THINGS EARLIER

Slide 53

Slide 53 text

MINIMIZE FOIT @font-face { font-family: 'Roboto'; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format(‘woff2'); } DOWNLOAD EVEN FEWER THINGS EARLIER

Slide 54

Slide 54 text

MINIMIZE FOIT FONT FACE OBSERVER

Slide 55

Slide 55 text

MINIMIZE FOIT FONT FACE OBSERVER body { font-family: 'Roboto', sans-serif; }

Slide 56

Slide 56 text

MINIMIZE FOIT FONT FACE OBSERVER body.fonts-loaded { font-family: 'Roboto', sans-serif; } body { font-family: sans-serif; }

Slide 57

Slide 57 text

MINIMIZE FOIT FONT FACE OBSERVER var font = new FontFaceObserver('Roboto'); font.load().then(function () { });

Slide 58

Slide 58 text

MINIMIZE FOIT FONT FACE OBSERVER var font = new FontFaceObserver('Roboto'); font.load().then(function () { document.body.classList.add(‘fonts-loaded'); });

Slide 59

Slide 59 text

MINIMIZE FOIT CONTROL THE BLOCK/SWAP PERIOD

Slide 60

Slide 60 text

MINIMIZE FOIT FONT-DISPLAY: OPTIONAL

Slide 61

Slide 61 text

MINIMIZE FOIT FONT-DISPLAY: OPTIONAL

Slide 62

Slide 62 text

MINIMIZE FOIT FONT-DISPLAY: OPTIONAL @font-face { font-family: 'Roboto'; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format(‘woff2’); }

Slide 63

Slide 63 text

MINIMIZE FOIT FONT-DISPLAY: OPTIONAL @font-face { font-family: 'Roboto'; font-weight: 400; src: local('Roboto'), url(https://font.woff2) format(‘woff2’); font-display: optional; }

Slide 64

Slide 64 text

INVISIBLE BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms

Slide 65

Slide 65 text

FALLBACK INVISIBLE BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms

Slide 66

Slide 66 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms

Slide 67

Slide 67 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms

Slide 68

Slide 68 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms

Slide 69

Slide 69 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms

Slide 70

Slide 70 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms 3S

Slide 71

Slide 71 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms 3S

Slide 72

Slide 72 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms 3S

Slide 73

Slide 73 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms 3S

Slide 74

Slide 74 text

FALLBACK INVISIBLE WEBFONT BLOCK SWAP FALLBACK OPTIONAL 3s 100ms 0S 100ms 3S

Slide 75

Slide 75 text

https://font-display.glitch.me

Slide 76

Slide 76 text

MINIMIZE FOIT ✅

Slide 77

Slide 77 text

MINIMIZE FOIT ✅ MINIMIZE FOUT

Slide 78

Slide 78 text

MINIMIZE FOUT BE LESS JARRING

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

https://meowni.ca/font-style-matcher

Slide 82

Slide 82 text

FUNSIES WITH web fonts BONUS

Slide 83

Slide 83 text

ICON FONTS

Slide 84

Slide 84 text

No content

Slide 85

Slide 85 text

No content

Slide 86

Slide 86 text

MAKE YOUR OWN!

Slide 87

Slide 87 text

MAKE YOUR OWN! STEP 1: DRAW SOME THINGS

Slide 88

Slide 88 text

MAKE YOUR OWN! STEP 2: THERE IS NO STEP 2

Slide 89

Slide 89 text

http://fontastic.me

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

COLOUR FONTS?

Slide 92

Slide 92 text

https://typewithpride.COM

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

VARIABLE FONTS

Slide 95

Slide 95 text

VARIABLE FONTS BASICALLY SORCERY

Slide 96

Slide 96 text

No content

Slide 97

Slide 97 text

No content

Slide 98

Slide 98 text

div { font-family: 'AmstelvarAlpha Default'; font-size: 192px; font-variation-settings: 'wght' 98.4113, 'wdth' 402; }

Slide 99

Slide 99 text

https://AXIS-PRAXIS.org

Slide 100

Slide 100 text

https://AXIS-PRAXIS.org

Slide 101

Slide 101 text

div { font-family: ''Buffalo Gals Regular''; font-size: 192px; font-variation-settings: 'CK ' -1, 'FR ' -0.929784, 'HV ' -1, 'CN ' -0.902336, ‘BR ' 0.549087, 'TC ' 0; }

Slide 102

Slide 102 text

https://AXIS-PRAXIS.org

Slide 103

Slide 103 text

/ bram stein - webfoNt handbook / helen holmes - type is your right / JAKE ARCHIBALD - minimising-font-downloads / every zach Leatherman BLOG post ever

Slide 104

Slide 104 text

THANKS! Noun Project: Smile by Clara Joy, Tubby Cat by Lauren Manninen, Exclamation by Kevin, Wink, Balloon, Microphone by Julien Deveaux, Ghost by Ted Meltok, Crazy Happy Creature by Tawny Whatmore, Cloud by Viraj, Web Page by Rajakumara, Settings by Akriti Bhusal, Dead cat by Erika Jasso, Wizard hat by Magicon, Rainbow by Grégory Montigny, Lettering by Carlo Pico, Icons by Setyo Ari Wibowo