Request to /icons/multipurpose.woff?2 canceled!

Posted in: Newspaper
Post count: 12

Hi,

When I test my site with GTmetrix, this request is canceled every time:

wp-content/plugins/td-newsletter/images/icons/multipurpose.woff?2

The thing is – the folder /icons do not exist and therefore the multipurpose.woff?2 file also not!

How do I find out where this request is coming from?

I have tried to disable the newsletter plugin, but I get the same result.

Anybody else with the same problem?

  • This topic was modified 5 years by jpack.
Post count: 21065
Post count: 12

I have looked through the link you gave me and I honestly fail to see the solution to my problem among the information I read.

What exact info are you referring to?

  • This reply was modified 4 years by jpack.
Post count: 35449

Hi jpack, the path on the icons is a little different set, for example in this case the path it is set here -> https://i.imgur.com/IAt1pvh.png also here -> https://i.imgur.com/iGkaZNI.png
I think that Bettina suggested to try to optimize those like I suggested here -> https://i.imgur.com/ngoCEoF.png -> https://forum.tagdiv.com/topic/low-scores-on-mobile-theme-amp-and-desktop-pagespeed-and-gt-metrics-optimize/
In your case I think it should be like this:

// Preload Newspaper fonts for responsive theme (main theme) function dns_prefetch_responsive()
{
echo '<link rel="preload" href="https://your-domain/wp-content/plugins/td-newsletter/images/icons/multipurpose.woff?2" as="font">';
}
add_action( 'wp_head', 'dns_prefetch_responsive', 0 );

I hope this will help you!

Post count: 53

HI,

In order to fix this – https://prnt.sc/22pey9o , I am adding the following code in the child theme’s funtions.php but getting the error showing in the last.


// Preload Newspaper fonts for responsive theme (main theme) function
dns_prefetch_responsive()
{
echo '<link rel="preload" href="https://techreek.com/wp-content/plugins/td-composer/mobile/images/icons/mobile-theme.woff?10" as="font">';
}
add_action( 'wp_head', 'dns_prefetch_responsive', 0 );

Your PHP code changes were rolled back due to an error on line 12 of file wp-content/themes/techreek-child/functions.php. Please fix and try saving again.

syntax error, unexpected token “echo”

Post count: 21065

Hello @lalit!

We can take a look for this and investigate why this code is not working for you. Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cPanel url and credentials
– a link to this topic in order to identify you
Our team will take a look!

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.