Questions tagged [pagespeed]

A set of tools from Google for applying performance best practices to web pages.

PageSpeed is an open-source project started at Google to help developers optimize their web pages by applying web performance best practices. PageSpeed started as an open-source browser extension, and is now deployed in third-party products such as Webpagetest.org, Show Slow and Google Webmaster Tools.

Links

1332 questions
252
votes
20 answers

PageSpeed Insights 99/100 because of Google Analytics - How can I cache GA?

I'm on a quest to reach 100/100 on PageSpeed and i'm almost there. I'm trying to find a good solution to cache Google Analytics. Here is the message I get: Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for…
sjmartin
  • 3,662
  • 4
  • 15
  • 31
155
votes
8 answers

"Eliminate render-blocking CSS in above-the-fold content"

I've been using Google PageSpeed insights to try and improve my site's performance, and so far it's proven extremely successful. Things like deferring scripts worked beautifully, since I already had an in-house version of jQuery's .ready() to defer…
Niet the Dark Absol
  • 301,028
  • 70
  • 427
  • 540
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
  • 266,361
  • 143
  • 616
  • 705
81
votes
7 answers

How to Specify "Vary: Accept-Encoding" header in .htaccess

Google PageSpeed says I should "Specify a Vary: Accept-Encoding header" for JS and CSS. How do I do this in .htaccess?
StackOverflowNewbie
  • 35,023
  • 98
  • 252
  • 421
71
votes
16 answers

Possible to defer loading of jQuery?

Let's face it, jQuery/jQuery-ui is a heavy download. Google recommends deferred loading of JavaScript to speed up initial rendering. My page uses jQuery to set up some tabs which are placed low on the page (mostly out of initial view) and I'd like…
Kevin P. Rice
  • 5,270
  • 4
  • 27
  • 39
53
votes
4 answers

Should I inline all CSS files programmatically to optimize page load speed?

Google PageSpeed often suggests to optimize CSS delivery. It occurred to me that it would reduce network round trips to inline all the CSS like this: