0
Welcome Guest! Login
0 items Join Now

Is there a way to preload fonts?

    • Eoin's Avatar
    • Eoin
    • Hero Rocketeer
    • Posts: 413
    • Thanks: 17

    Is there a way to preload fonts?

    Posted 4 years 7 months ago
    • Is there a way I can preload my fonts?

      Also can I load them from a CDN, with a fallback for local?

      Or an override I can do to preload them?

      I've added


      @font-face {
        font-family: 'Roboto Slab';
        font-display: swap;
        src: local('Roboto Slab'), url(https://fonts.gstatic.com/s/arvo/v9/rC7kKhY-eUDY-ucISTIf5PesZW2xOQ-xsNqO47m55DA.woff2) format('woff2');
      }
    • Last Edit: 4 years 7 months ago by Eoin.
    • Just a lonely web designer trying to make his way
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Is there a way to preload fonts?

    Posted 4 years 7 months ago
    • Not really. It would be better to hide the page content until all resources have loaded. Or, orcorse, yes a local font and caching.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.045 seconds