Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gabe Livan

    (@gabelivan)

    @devrekli Asset CleanUp deals with enqueued CSS/JS files. AdSense codes are usually not enqueued (due to their structure) but hardcoded. Moreover, they are external (on Google’s servers) and no changes to their code are made by Asset CleanUp. As for the Google CDN libraries, which one are you using? You could defer it (be careful if you do that to make sure other scripts depending on it will still work) or async load it.

    Thread Starter devrekli

    (@devrekli)

    @gabelivan I think google library code is related to this.

    <script type=”text/javascript”>
    WebFontConfig = {
    google: { families: [ ‘Barlow Condensed:300,400,500,700|Open Sans:300,400,600,700’ ] }
    };
    (function() {
    var wf = document.createElement(‘script’);
    wf.src = ‘https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js&#8217;;
    wf.type = ‘text/javascript’;
    wf.async = ‘true’;
    var s = document.getElementsByTagName(‘script’)[0];
    s.parentNode.insertBefore(wf, s);
    })(); </script>

    So what can we do to solve this error? for adsense and statcounter ?

    thanks

    Plugin Author Gabe Livan

    (@gabelivan)

    @devrekli you’re loading the Google Fonts in an asynchronous way. Even Asset CleanUp offers this option (in case your fonts.googleapis.com is render-blocking). Moreover, I’ve checked your website’s PageSpeed score and is 97 on Desktop and 76 on Mobile. I’ve only noticed “Third-party code blocked the main thread for 140 ms” which is on mobile only. I wouldn’t worry about it. You have third party code and it’s normal to take some time to load. Plus, in on the green side (passed) in Google PageSpeed. Also, for Google CDN the “Main-Thread Blocking Time” is 0 ms.

    PS: I’ve checked your homepage and you’re loading Contact Form 7 CSS/JS (2 files). If you don’t use any contact forms on the homepage (I haven’t noticed any), consider unloading those files. Not only you will get a smaller total page size, but you will reduce render-blocking resources as well.

    Thread Starter devrekli

    (@devrekli)

    @gabelivan

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reduce the impact of third-party code pagespeed?’ is closed to new replies.