• I am using google page insights and I am getting a 3.84 second load time for these Icons. I tried disabling through the Theme panel, but then my shop didn’t look right. The File that is causing it is Simple-Line-Icons.woff2 and it is in my /wp-content/themes/oceanwp/assets/fonts/simple-line-icons

    I am looking at pre-loading it, but when I opened the file it was not readable, and I was recently hacked, so is this a normal file? Guidance on what this file is, why it is taking almost 4 seconds to load, and best way to fix that load time would be appreciated.

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

Viewing 6 replies - 31 through 36 (of 36 total)
  • And if you are from Russia, write in Russian) what is wrong with your sidebar. I just didn’t really understand your problem.

    if you make it preload thats just solves google score but not overal real page speed.
    If you check site on webpagespeed, it still there and slow downs your page, only use of this icon in my page is Menu Card icon and after disabling it bag icon goes and no way cant fix it.. Please solve this issue

    So many days to this topic, but the developers still haven’t fulfilled their promise. Ehh. 🙂

    For now we can solve this problem only ourself. For this need to add

    <link rel="preload" href="/wp-content/themes/oceanwp/assets/fonts/simple-line-icons/Simple-Line-Icons.woff2?v=2.4.0" as="font" type="font/woff2" crossorigin="anonymous">
    <link rel="preload" href="/wp-content/themes/oceanwp/assets/fonts/fontawesome/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous">

    to html header.

    The easiest way for that is using plugin like Insert Headers and Footers.

    Or it is possible to add to function.php in child theme. Something like

    function child_wp_head() {
        echo ‘<link rel="preload" href="/wp-content/themes/oceanwp/assets/fonts/simple-line-icons/Simple-Line-Icons.woff2?v=2.4.0" as="font" type="font/woff2" crossorigin="anonymous">’;
        echo ‘<link rel="preload" href="/wp-content/themes/oceanwp/assets/fonts/fontawesome/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous">’;
    };
    add_action(‘wp_head’, ‘child_wp_head’);

    Or use optimization plugin, wich has preload fonts feature.

    But hope developers of theme will solve this problem. Someday. 🙂
    OceanWP is very good theme at all.

    Hello,

    There is no need to use the preload since we’ve added a display swap option with the 2.0.0 version.
    However, if you want to use preloads, you can do that with any optimization/caching plugin.

    We’ve added the option to choose default theme icons where simple line icons were used (for example meta icons), and you can switch to Font Awesome via Customize > General Options > Theme Icons. Of course, this doesn’t go for icons you manually insert (for menu items for example, there the user needs to be careful)
    https://oceanwp.org/blog/oceanwp-20-coming-out-what-to-expect/

    There is no need to use the preload since we’ve added a display swap option with the 2.0.0 version.

    Did you talk about “font-display: swap;”? This option is usefull, yes. But without “preload” Google PageSpeed shows error about long-loading fonts, so problem still exist. Or you don’t agree with Google?

    Thank you for noticing the issue, I have passed your message to the concerned dev team to look into it.

Viewing 6 replies - 31 through 36 (of 36 total)
  • The topic ‘Simple Line Icons Load Time Issue’ is closed to new replies.