[Hummingbird] Site mobile optimisation

I am getting theses error or recommendations when I speed test the mobile site we are improving no end but I am not sure how I sort this looks like Hummingbird file

Optimization Suggestions
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 2 blocking script resources and 7 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Remove render-blocking JavaScript:
Optimize CSS Delivery of the following:
Leverage browser caching
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
Leverage browser caching for the following cacheable resources:
https://static.doubleclick.net/instream/ad_status.js (15 minutes)
https://www.googletagmanager.com/gtag/js?id=UA-51662211-1 (15 minutes)
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js (60 minutes)
https://www.google-analytics.com/analytics.js (2 hours)

Thanks a lot John

  • Adam Czajczyk

    Hello John

    I hope you're well today and thank you for your question!

    There's currently no separate optimization options for mobile and desktop. The way to achieve the best possible score on both is to try to "balance" a bit - by adjusting settings slightly until the mobile score goes as high as possible without getting site down/broken and without the desktop score dropping significantly (by "significantly" I mean for example going down from 87 to 70 but not i.e. from 86 to 84).

    As for these particular issues that you got reported. In this case it looks like those optimized JS and CSS asset served from WPMU CDN are considered as "resource blocking". I suggest trying to disabled WPMU DEV CDN in Asset Optimization settings first and then checking if that helps. That's a tool that usually gives a nice boost but on some setups it might actually work in an opposite way (that's why it's "switchable").

    Then you got a suggestion to leverage browser caching. However, resources listed there are external to your site (they are all from Google). This changes things a bit: there's not much you can do about them because "to leverage browser caching" would mean changing browser caching settings for these files and that can only be done on a server that actually serves them. As you/we don't have any access to Google servers, we cannot affect that. The bottom line is that this suggestion for these specific files means only two possible ways to proceed: either ignore that report or remove scripts (plugins/themes/custom codes) that are calling out these URLs from the site entirely.

    That said, please try switching of the WPMU DEV CDN in Hummingbird's Asset Optimization settings, clear all the caches on site, visit the site front-end (as a not-logged-in user) and browse it for a moment, the give it a couple of minutes "rest" and run performance test/PageSpeed test again to see if that solved the "render blocking resources" issues.

    Let me know about result, please. If that doesn't help, I'll investigate the issue further of course.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.