We are currently improving our site's Google Pagespeed score and one of the very few remaining items left is the below issue:
Leverage browser caching
https://ssl.google-analytics.com/ga_exp.js?utmxkey=xxxxxxxxx&utmx=&utmxx=&utmxtime=xxxxxxxxx
https://www.googletagmanager.com/gtag/js?id=xxxxxxxxx
https://connect.facebook.net/signals/config/xxxxxxxxx?v=2.8.27&r=stable
https://www.googleadservices.com/pagead/conversion.js
https://www.googleadservices.com/pagead/conversion_async.js
As you can see, PageSpeed is suggesting to cache the mentioned files, but they are external sources.
This is a WordPress site by the way, and I did try what seems like an experimental plugin to host locally the Google Analytics file, but it doesn't help.
I also tried locally hosting conversion.js - creating a copy of the file, saving it to my server, and referencing to that file instead but it breaks Google Analytics' A/B testing.
Are there any ways to address these PageSpeed issues?
Related
The Websites of my clients use Wordpress Plugins, that load external Content like Google Fonts, which Violates the GDPR (General Data Protection Regulation). I am trying to find a way to comply with the GDPR.
I tried disabling or uninstalling the plugins, whcih only worked for a few Cases. Most often doing this broke the website.
Adding a local Copy of the external content, only works for Plugins where I can change the reference to the content.
So there are still plugins that are in violation with the GDPR and I have no effective way to deal with them.
There is a plugin that can search for all google fonts and install them locally: https://wordpress.org/plugins/local-google-fonts/
I know Google AMP Cache caches valid AMP pages and resource files of a website and make them available via .cdn.ampproject.org/. I made some tests and it works fine for my website.
I work for a popular website with terabytes of throughput per day. What happens if I make all my image files available via google AMP Cache? Will AMP Cache just serve my files for free?
Is this a free CDN service? If it is free, why are companies paying for CDN services?
My boss just don't buy the idea that google AMP cache is a free CDN. He asks "what if the service is discontinued abruptly?" or "what if they start to charge the throughput?". Is there any gotcha?
Does anyone know about a big company currently using the AMP Cache as a CDN?
Using the Google AMP Cache for serving images for display outside of documents served from the Google AMP Cache is not a supported use and may not work, or may stop working in the future.
[Tech lead of AMP here]
You can use AMP cache for contents on your AMP pages for free, there is a limitation on size, from FAQ:
Are there size limits on resources?
Yes, the Google AMP Cache does not fetch any resources (i.e., HTML,
images, fonts) that are larger than 12 MB. In these cases, the Google
AMP Cache returns a 404 error.
Does anyone know about a big company currently using the AMP Cache as a CDN?
Just to calm your boss, AMP pages is being used by prestigious online publishers around the world including The Atlantic, The Washington Post, Vox Media, BuzzFeed, The Guardian and The New York Times and Twitter as well.
But I'm concerned if there are limits on bytes transferred or number of client requests.
- The batchGet method has a default limit of 50; request up to 50 AMP URLs each time you call this method. This is found in AMP Usage Limits.
I have a Wordpress site that has multiple plugins & that has somehow over time got the same Analytics tracking link (albeit slightly different implementations of it) in a few places on the site.
I want to remove one of them so the site 'touch wood' only uses a single tracking link throughout, is there a website scanning tool or desktop application that will scan an app and help me find each location of this tracking link?
Used the Google Tag Assistant for Chrome extension
I am developing a website for a car rental company and am using a subdomain for testing. The site is very slow on all browsers (and on the backend) despite high score on Pingdom, PageSpeed Insights, and GTmetrix. I'm not new to WordPress and page speed and have been able to achieve speed with the use of plugins and the right hosting.
I am using the Avada theme with the following plugins (I have already removed each plugin individually to see if any one of them was the culprit):
Autoptimize
JCH Optimize
Ninja Forms
Justified Image Grid
W3 Total Cache (used with maxCDN)
WP Migrate DB
WP-Optimize
wpMandrill
Our hosting provider is HostGator but I want to use Pagely.
Here is our Site
I just tested it out on pingdom and scored a 91/100.
Also, pages with very little content, such as our contact page, run slow as well.
FYI, this is a test site so you might find random pics of my dog in strange locations.
If you are using Google Chrome, open an incongnito page and open developer tools, click on network and then load your site. Now sort by time(latency). You will notice JCH Optimize, Autoptimize and WP-Optimize are taking up a lot of load time. Disable these plugins one by one to see if it makes any difference.
Also - I don't think you need three different plugins to optimize your site. One should be enough.
Hope this helps.
I recently moved my site set up from Linode to Google Cloud Platform.
I deployed Wordpress in the Google Cloud Platform and migrated my site to Google Cloud Platform.
We are running the latest version of Wordpress and our database size is around 70-80mb.
My homepage is not larger than 7mb.
The problem I am facing is an extremely slow response when my browser pings my Google Cloud IP. Our TTL is at godaddy default settings.
Any help on this would be great. My site is: https://ihb.io/
Looking at your DNS records and checking latency I didn't notice anything obvious.
However, when I load your page my browser seems to constantly make GET requests every few seconds. I suggest loading your page with a developer mode turned on so you can see the network usage or use a free tool like this:
http://tools.pingdom.com/fpt/#!/QKUiu/ihb.io
Which shows pretty clearly that while your homepage is 7mb, 231 requests were needed to load it. This causes a large overhead. You should try and reduce the number of requests needed to load your website.