• Resolved mfarner

    (@mikoo1)


    Often on the first load in a new incognito window I see a wrong font style loaded for the H1 title (e.g. “Künstler” on this page: https://www.emerging-art.net/kuenstler/). After a reload the correct style will be loaded. If I jump between the pages in the top menu mostly the correct style will loaded but from time to time a wrong style is loaded.
    I see an JavaScrip error in the console “(index):62 Uncaught ReferenceError: WebFont is not defined at (index):62”. But this line is unchanged during the session and looks the same when the font style will be loaded correctly.
    If I deactivate Autoptimize it works. I tried several configuration options under “Extras” -> “Google Fonts”. I now using the last one “combine and load asynch”.

    Thank you very much in advance for any help!

    Best regards
    Marco

    • This topic was modified 7 years, 3 months ago by mfarner.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    I had a look at your page’s HTML source and it looks like you have AO’s webfont implementation on one hand, but then also this one from the Kirki theme;

    
    <script type='text/javascript' src='https://www.emerging-art.net/wp-content/plugins/kirki/modules/webfont-loader/vendor-typekit/webfontloader.js?ver=3.0.28'></script>
    <script type='text/javascript'>
    WebFont.load({google:{families:['Poppins:400,600,800:cyrillic,cyrillic-ext,devanagari,greek,greek-ext,khmer,latin,latin-ext,vietnamese,hebrew,arabic,bengali,gujarati,tamil,telugu,thai']}});
    </script>

    The error you’re seeing if from this last one and can likely be fixed by adding plugins/kirki/modules/webfont-loader to AO’s comma-separated JS optimization exclusion list.

    hope this helps,
    frank

    Thread Starter mfarner

    (@mikoo1)

    Hi Frank

    Thank you so much for your help!!
    The problems seems to solved.

    Best,
    Marco

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome Marco, feel free to leave a review of the plugin and support here! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sometimes a wrong font style get loaded’ is closed to new replies.