Questions tagged [google-pagespeed]

deleted as mod-pagespeed should be used instead.

PageSpeed Documentation is available here.

544 questions
138
votes
9 answers

How does Google's Page Speed lossless image compression work?

When you run Google's PageSpeed plugin for Firebug/Firefox on a website it will suggest cases where an image can be losslessly compressed, and provide a link to download this smaller image. For example: Losslessly compressing…
Drew Noakes
  • 300,895
  • 165
  • 679
  • 742
135
votes
4 answers

What is "above-the-fold content" in Google Pagespeed?

Until recently, my site (www.heatexchangers.ca) scored 98% on Google Page Speed. There were a couple of things I could do nothing about such as the query string from web fonts. I was very happy with this as this represented all that I could…
Glipt
  • 1,401
  • 2
  • 10
  • 7
66
votes
8 answers

CSS delivery optimization: How to defer css loading?

I am trying to optimize the CSS delivery following the google documentation for developers https://developers.google.com/speed/docs/insights/OptimizeCSSDelivery#example As you can see in the example of inlining a small CSS file the critical CSS in…
RafaSashi
  • 16,483
  • 8
  • 84
  • 94
47
votes
4 answers

How to reduce the image size without losing quality in PHP

I am trying to develop an image-based web site. I am really confused about the best image type for faster page loading speeds and best compression practices. Please advise me on the best way to compress image sizes.
user1431849
  • 499
  • 1
  • 4
  • 7
34
votes
3 answers

Leverage browser caching for 3rd party JS

I have set Expiry on my httpd.conf ExpiresActive On ExpiresDefault "access plus 1 month" ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType…
Vivek Tankaria
  • 1,301
  • 2
  • 15
  • 35
33
votes
4 answers

Disable mod_pagespeed (no server conf access, .htaccess doesn't work)

I have a Wordpress site that my client wants to validate perfectly (using W3C validator). One of the issues is Google's pagespeed, which seems to be enabled by default by hosting provider. I try to disable mod_pagespeed in .htaccess file with the…
zarsky
  • 680
  • 2
  • 14
  • 24
30
votes
3 answers

Pagespeed-penalty for using srcset

Displaying retina & non-retina to corresponding devices like this: Works. But Google Pagespeed Insight is telling that it cannot render this until…
Raphael Jeger
  • 5,024
  • 13
  • 48
  • 79
25
votes
4 answers

How can I compress images using java?

From pagespeed I am getting only image link and possible optimizations in bytes & percentage like, Compressing and resizing https://example.com/…ts/xyz.jpg?036861 could save 212KiB (51% reduction). Compressing…
22
votes
1 answer

"Requests from referer https://www.googleapis.com/ are blocked" error

I'm Brazilian, and I'm starting to make a sports blog. I went to PageSpeed ​​Insights to make an assessment of what I still need to adjust, but the analysis stops at 50% with the following error: "Requests from referer https://www.googleapis.com/…
Corinthians 247
  • 223
  • 2
  • 5
22
votes
3 answers

Cache validator for Google Webfonts

So I'm creating an ultra optimized site, and my page load speed with https://developers.google.com/speed/pagespeed/ is 99 (out of 100). The only thing keeping me away from full hundred is this: By specifying a cache validator - a Last-Modified or…
user1537415
20
votes
7 answers

Is using inline JavaScript preferred to an external include if the script is really short?

I use External JavaScripts in a website as I always try to keep JavaScript at bottom and external. But Google page speed is giving this suggestion The following external resources have small response bodies. Inlining the response in HTML can…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
20
votes
13 answers

What is the name of the Google PageSpeed User Agent?

This page indicates that it uses a custom user agent but it does not mention the name. I would like to be able to run some logic if the user agent is from PageSpeed. What is the name of the Google PageSpeed user agent?
Matty B
  • 1,008
  • 2
  • 13
  • 25
19
votes
3 answers

Serve resources from a consistent URL: facebook vs Google Pagespeed

There is a common problem on using Facebook like button or box, on using pagespeed online sevice by Google I get this : Serve resources from a consistent URL The following resources have identical contents, but are served from different URLs. Serve…
18
votes
3 answers

How to fix Ensure text remains visible during webfont load

Hi I'm facing this problem in google pagespeed I almost get my site speed to 100 the only thing remaining is Ensure text remains visible during webfont load I'm already using font-display:swap; so why is this not fixing my problem. here's my…
leo Spacer
  • 201
  • 1
  • 2
  • 4
17
votes
5 answers

Defer parsing of JavaScript - Google Page Speed

All of my JavaScript files are already at the bottom but Google Page Speed is giving this suggestion to improve speed: Defer parsing of JavaScript 88.6KiB of JavaScript is parsed during initial page load. Defer parsing JavaScript to reduce…
Jitendra Vyas
  • 148,487
  • 229
  • 573
  • 852
1
2 3
36 37