• Hello guys! Hope you all are well.

    After the new update (1.0.13 on 09.02.21) There is a new function (Fonts Preloading) Which I find a very nice performance feature, even if in the past I have been preloading requests using the performance plugin of SG, now it is nice to have it automated! However, since this update, even if I am using only one style of the Font (+ bold) which makes 2 requests; I have 10 requests now (for the same font, “Cormorant”). In consequence, I have increased my requests by 8, which penalizes me in performance.

    Do you have some idea how to solve that? To preload the only styles which are in use?
    Or add a toggle (In performance TAB, after “Store locally the fonts”) To switch off this function for someone who wants to have more control of this?

    Thank you!
    Hope to hear you back soon.
    Cheers, Artur.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey,
    Thanks for posting! I see the issue I have it preloading font subsets which browsers are smart enough to ignore so they shouldn’t preload.

    I’ll get it fixed.

    You can disable preloading with a hook, I’ll consider adding an option.

    add_filter( ‘kadence_local_fonts_preload’, ‘__return_false’ );

    Ben

    Hello Ben,

    Thanks for the blazing fast reply!
    Ok, a good idea for now, can I add the filter in the main theme? Without creating the Child theme? Directly from WP admin dash, by the next update, you think it can be solved?

    Thanks again Ben!
    With regards, Artur.

    Hello,

    You can use a plugin like https://wordpress.org/plugins/code-snippets/ and you should be able to add the filter there.

    Let me know if you need anything else.

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple Font Styles Preload (1.0.13 Update)’ is closed to new replies.