Questions tagged [pagespeed-insights]

Questions relating to the PageSpeed Insights tool from Google.

https://developers.google.com/speed/pagespeed/insights/

485 questions
25
votes
2 answers

Can I use pagespeed insights for my local host website or offline?

Can I use pagespeed insights for my localhost website or offline?
Kishor
  • 502
  • 1
  • 5
  • 12
24
votes
4 answers

How to set Cache-Control Header in amazon cloudfront?

I have a amazon cloudfront distribution that creates a 'origin' to my CDN. In my behavior, I set the Max TTL, Min TTL and default TTL. But my response header does't return the Cache-control header in my static files that are redirected. How to set…
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
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
2 answers

For responsive images with different aspect ratios, what's a good way to minimize Cumulative Layout Shift?

If you have a element with image sources at different aspect ratios at different breakpoints, what is the best way to minimize CLS by using aspect-ratio and media queries in CSS?
addyo
  • 2,798
  • 1
  • 14
  • 21
14
votes
3 answers

Export PageSpeed Insights (by Google) results

Is there any way to export PageSpeed (the Google Chrome extension) results into a file? I'm looking for a way to export the results from web-site testing using PageSpeed tab in the browser console.
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
13
votes
3 answers

Can Google.com and other heavily trafficked websites get a "fast" rank using Google's PSI API?

Google changed its PSI definition of fast-ranking FCP from 90-percentile to 75-percentile below 1000ms From PSI documentation: Why does the FCP in v4 and v5 have different values? FCP in v5 reports the 75th percentile (as of November 4th 2019), …
12
votes
2 answers

Cumulative Layout Shift with Bootstrap 4 grid

I am having a problem with high CLS (Content Layout Shift) while using Bootstrap (4.5) grid for two column layout with column order change. CLS is a Core Web Vital metric. Basically Google sees a problem when webpage's parts are moving when the page…
szymond
  • 1,311
  • 2
  • 19
  • 41
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
11
votes
1 answer

LCP time between LightHouse and Performance - Google Chrome

With google chrome chrome dev, I am running a lighthouse Analysis for mobile. Lighthouse shows a 7.0 seconds delay for Largest Contentful Paint (LCP): I decide to dive into this and click on: "View original trace". It redirects me to the…
8
votes
3 answers

Recaptcha V3 assets cause Pagespeed issues - how to defer

We're currently using Google Recaptcha V3 across the public-facing portions of our site - while doing Pagespeed Insights performance testing (Mobile), Google themselves is reporting unused/undeferred CSS as a problem on their own Recaptcha css…
laserslasers
  • 91
  • 1
  • 1
  • 5
7
votes
2 answers

Core Web Vitals Assessment: Failed

There is a new feature in PageSpeed Insights that shows you the experience of real users. Now I checked one of my websites with this feature on mobile and I got this message: "Core Web Vitals Assessment: Failed Computed from the Core Web…
TongaLife
  • 124
  • 1
  • 1
  • 8
7
votes
1 answer

Serve static assets with an efficient cache policy - Google PageSpeed Insights

I am using OctoberCMS and I have apache server and using AWS and when I do PageSpeed testing https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.rosterelf.com%2F&tab=desktop I am keep getting this errror saying Serve…
7
votes
2 answers

How can I fix the Lighthouse returned error: NOT_HTML. The page provided is not HTML (served as MIME type ) error for square/weebly website?

I am trying to use PageSpeed Insights in Google Search Console for Weebly/Square website and getting an error: Lighthouse returned error: NOT_HTML. The page provided is not HTML (served as MIME type ) It worked for me at the beginning (I tested 2-3…
1
2 3
32 33