0
Welcome Guest! Login
0 items Join Now

Font loaded through theme.yaml with rel="preload"

    • Omikron's Avatar
    • Omikron
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Font loaded through theme.yaml with rel="preload"

    Posted 3 years 7 months ago
    • Any know if the scenario in title is possible?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Font loaded through theme.yaml with rel="preload"

    Posted 3 years 7 months ago
    • No, it's not.

      Not sure why you want this though? If it's just that you don't want he page to be visible until the font (and the rest of the page) has loaded consider this instead https://rockettheme.com/forum/gantry5-for-joomla/274668-how-to-make-pages-fade-in-on-load-in-gantry-5 .


      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.
    • Omikron's Avatar
    • Omikron
    • Jr. Rocketeer
    • Posts: 47
    • Thanks: 0

    Re: Font loaded through theme.yaml with rel="preload"

    Posted 3 years 7 months ago
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Font loaded through theme.yaml with rel="preload"

    Posted 3 years 6 months ago
    • Not everything that Google recommends is right, and it does say "consider" not "you must".

      Preloading a font will slow down the initial display of your site as it will cause the font to be loaded before other aspects of the page are rendered.

      The only way you could get this option would be to override core Gantry 5 files (not YAML).

      Personally I still think it's better to hide the whole page until it has fully loaded as I suggested.

      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.037 seconds