Site logo

Archived topic

Need to optimize my site for the following issues

3 replies · Started by Amit on December 16, 2020

Viewing posts 1–4 of 4

I need my site inner pages to be improved for the following -
- Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading
- Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance
- Load adsense ads more quickly
Plus I am open to other suggestions to improve page load.

Hi there,

1. You can try adding the following snippet to a Hook Elememt:

<link rel="preconnect"
      href="https://fonts.gstatic.com"
      crossorigin />
<link rel="preload"
      as="style"
      href="$CSS&display=swap" />
<link rel="stylesheet"
      href="$CSS&display=swap"
      media="print" onload="this.media='all'" />
<noscript>
  <link rel="stylesheet"
        href="$CSS&display=swap" />
</noscript>

Set the hook to: wp_head

2. That warning comes from a wordpress function that is not easily changed, i am not sure but it may have been patched in WP 5.6

3. Thats not within our control, you can try tagging your ads with async - see here for more info:
https://techwelkin.com/load-google-ads-faster

I inserted the code, but that still shows up.

Hi there,

If you look through your results in Pagespeed Insights, you'll see that most (all?) of these issues are coming from the ad networks on your site. Unfortunately, there isn't much we can help with here - the best thing you can do is limit the number of ads/third-party resources you're loading on the site.

This archived topic is closed to new replies.