Jump to content
Search Community

konstantinschuette

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by konstantinschuette

  1. Seems like the font is not loaded early enough.

    Because wrapping the GSAP code with `

    document.fonts.ready.then(() => {[...]})

    `

    seems to do the trick.

     

    But now on the first time visiting the page, the text flashes, before the font is loaded.

    Is there any way to prefetch the font, so that the first rendering is always happening with that font?

    I looked up all the possible `rel` attributes for the HTML link tag, but none seem to fit this (https://3perf.com/blog/link-rels/)

×
×
  • Create New...