• Google Pagespeed wants me to preload this file only in order to save 2500ms:
    wp-content/themes/dt-the7/fonts/icomoon-the7-microwidgets-16×16/fonts/icomoon-the7-microwidgets-16×16.ttf

    How to put ‘preload’ to this single file site-wide ?

    Thanks for your help in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Add <link preload=""> to heaader.php between <head></head>
    First page will not have any benefit but subsequent pages will.
    If you need benefit for first page the user loads, then you will need some JS to load that image after the page loads.

    Thread Starter ictobi

    (@ictobi)

    Hi,
    how can I do this? Just editing the template.php?
    On FTP or within WordPress admin panel?

    I have the same issue which I need to resolve – but need it fixed for the first page – will take a look at the developer of The7 forum in hope of an answer. If I find the answer I’ll post here – hopefully if some else finds it first they will also post

    Thread Starter ictobi

    (@ictobi)

    @rewarddesign

    Appreciated. Please let me know what you have found out

    From the support team at The7…
    Ticket updates: Status: open → replied Comment: Hello! You can add the following code into Dashboard – Theme Options – Advanced – Custom JS to preload this resource <link rel=”preload” href=”https://example.com/wp-content/themes/dt-the7/fonts/icomoon-the7-microwidgets-16×16/fonts/icomoon-the7-microwidgets-16×16.ttf?dqeoeo” as=”font” type=”font/ttf” crossorigin=”anonymous”> Do not forget to replace example.com to your actual site url. But i actually do not recommend to do this, we do not add preloading for these fonts because it will actually decrease the page loading speed. This is described by the simple fact that when you increase priority to download these icon sets, the other most important resources (css styles and required scripts required to display the page as soon as possible) will be delayed. Best regards, Artem

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preload one single file’ is closed to new replies.