Questions tagged [google-pagespeed]

deleted as mod-pagespeed should be used instead.

PageSpeed Documentation is available here.

544 questions
17
votes
1 answer

Nginx enable gzip

I want enable the gzip compression on my nginx server. The nginx.conf file is here: http { # Enable Gzip server { location ~* \.(?:ico|woff|css|js|gif|jpe?g|png)$ { expires 30d; add_header Pragma public; add_header…
wpdaniel
  • 714
  • 8
  • 25
16
votes
4 answers

Specify explicit width and height for picture tag

Lighthours and Pagespeed insight keep telling me to define an explicit width and height for my images. But most of my images comes from picture tags since mobile and desktop image sizes are different. How can I provide different width and Height…
Tharaka Nuwan
  • 702
  • 2
  • 7
  • 21
16
votes
4 answers

Leverage browser caching for external files

i'm trying to get my google page speed insights rating to be decent, but there are some external files that i would want to be cached aswell, anyone knows what would be the best way to deal with this? https://s.swiftypecdn.com/cc.js (5…
martinsh3
  • 171
  • 1
  • 1
  • 4
15
votes
3 answers

Font-awesome CDN JS showing as render-blocking on Pagespeed Insights

Instead of directly linking to the Font Awesome CSS, I am using the js from Font Awesome CDN to allow async loading of the icons on the homepage but Google's Pagespeed Insights still marks it as a render-blocking js. I am using the custom js link…
Anupam
  • 14,950
  • 19
  • 67
  • 94
14
votes
2 answers

How to fix "Setting an expiry date or a maximum age in the HTTP headers"

I am using Ftp When I run my website on page speed tools, it gives me the following message "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…
rihab
  • 181
  • 1
  • 1
  • 11
13
votes
2 answers

PageSpeed Insights - in English

I am located in Spain, but my OS, browser settings and all on my laptop is in English. For some reason, PageSpeed Insights appears in Spanish, which I don't want. When I change the language settings for PageSpeed Insights…
Libertad
  • 131
  • 1
  • 4
12
votes
2 answers

How to avoid Google Ads from slowing down my site (Especially Mobile)?

I know that many webmasters believe that page speed means nothing. However, I’m confident that this factor is one of TOP 3 in the Google’s decision of ranking any website. I tired of seeing how Google’s own services are slowing down my pages. I…
Alex Cardo
  • 365
  • 2
  • 4
  • 14
12
votes
2 answers

Lighthouse: FAILED_DOCUMENT_REQUEST

When i check site speed using PageSpeed Insights I am not able to see result and get error message like below : Lighthouse: FAILED_DOCUMENT_REQUEST. Lighthouse was unable to reliably load the page you requested. Make sure you are testing the…
Heena
  • 171
  • 1
  • 1
  • 11
12
votes
1 answer

PageSpeed review and optimization

I analysed my page speed using google pagespeed insight and got below suggestion. Can any one help me how I can implement it. Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the…
Ajay Parsana
  • 175
  • 2
  • 2
  • 14
10
votes
3 answers

Ensure text remains visible during webfont load not getting resolved in Google pagespeed insights

Ensure text remains visible during webfont load issue is not getting resolved in google pagespeed insights report even after adding font-display: fallback to the CSS. How can I resolve the issue? @font-face { font-family: Jura; src:…
Hiran Narayanan
  • 141
  • 2
  • 2
  • 5
10
votes
1 answer

Google PageSpeed: Big gap between Desktop and Mobile

I'm trying to improve/optimize my website performance and cannot make it work.. And I running out of ideas. This is my Site in Desktop with 99/100 score. And this is my website performance in Mobile, with 40/100 score. There are some big…
mauriblint
  • 1,802
  • 2
  • 29
  • 46
10
votes
1 answer

Gatsby.js: Load Google Fonts for Typography themes without Render-Blocking

I'm using Gatsby.js and its Typography plugin with the Irving theme. This theme requires the Google Fonts "Exo" and "Yrsa", and adds an import to the section of the exported static html files:
10
votes
1 answer

Why is Google PageSpeed Insights telling me to minify javascript & CSS (using Rails 3.2 with JS & CSS compression) and how to fix?

I know it's not a lot I could save in KB, but to achieve a better score in Google PageSpeed Insights, and thus probably better SEO ranking, how can I fix this? From https://developers.google.com/speed/pagespeed/insights/?hl=en&url=www.tradebench.com…
10
votes
1 answer

How do you turn on gzip compression for SVG files in IIS?

I have created a web.config file that successfully turns on static compression for text and message resources. However, the obvious solution shown below does not seem to have any affect on .svg compression (validated that gzip content encoding not…
user3072310
  • 101
  • 1
  • 5
8
votes
2 answers

Curl showing gzip but chrome showing no gzip header

curl -I -H 'Accept-Encoding: gzip,deflate' https://example.com/a.min.js HTTP/1.1 200 OK Server: nginx Date: Thu, 22 Jun 2017 02:45:49 GMT Content-Type: application/javascript; charset=utf-8 Content-Length: 5430 Connection:…
owais
  • 4,752
  • 5
  • 31
  • 41
1
2
3
36 37