Current time: 11-20-2019, 09:38 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PageSpeed Minification Pecentages Miscalculated
05-10-2014, 01:48 AM
Post: #1
PageSpeed Minification Pecentages Miscalculated
It looks like PageSpeed is miscalculated the percent reduction for the JS Minify task.

I set up a small web page that loaded jquery 1.10.2 (non-minified) as a test.

Here's the result from WPT:
Minifying http://ajax.googleapis.com/ajax/libs/jqu.../jquery.js could save 38.8KiB (15% reduction) after compression.

Here's the result using the current version of the PageSpeed Chrome extension:
Minifying http://ajax.googleapis.com/ajax/libs/jqu.../jquery.js could save 38.8KiB (50% reduction) after compression.

As a control I hit both the non minified and minified versions hosted on google (gzip compressed) and looked at the sizes via Fiddler:
http://ajax.googleapis.com/ajax/libs/jqu.../jquery.js (Gzip, not-minified): 79.2KiB
http://ajax.googleapis.com/ajax/libs/jqu...ery.min.js (Gzip, minified): 32 KiB
Reduction: 47 KiB (60%)

So the Chrome extension version seems much more accurate, I'm guessing the remaining difference is due to various differences in the gzip and/or minfication algorithms used.


Is this just a matter of updating the PageSpeed version in WPT or am I missing something?

Thanks.
Find all posts by this user
Quote this message in a reply
05-10-2014, 02:08 AM
Post: #2
RE: PageSpeed Minification Pecentages Miscalculated
FWIW, I'm actually in the process of removing the pagespeed lib and using the online service anyway. Both the extension and the lib have been falling further behind (the lib hasn't been updated in several years).
Visit this user's website Find all posts by this user
Quote this message in a reply
05-10-2014, 03:45 AM
Post: #3
RE: PageSpeed Minification Pecentages Miscalculated
(05-10-2014 02:08 AM)pmeenan Wrote:  FWIW, I'm actually in the process of removing the pagespeed lib and using the online service anyway. Both the extension and the lib have been falling further behind (the lib hasn't been updated in several years).

Thanks for the info, would there be a solution for private instances?
Find all posts by this user
Quote this message in a reply
05-15-2014, 12:45 AM
Post: #4
RE: PageSpeed Minification Pecentages Miscalculated
Not a good one (at least for private pages). For public pages you'll be able to use a developer key and also integrate with Page Speed but nothing that runs behind a firewall.

Are there specific checks you are interested in? WebPagetest does it's own checks for some of the basic things. It used to also do a minify check but after gzip I wasn't seeing it matter that much so I had disabled it.
Visit this user's website Find all posts by this user
Quote this message in a reply
05-15-2014, 07:10 AM
Post: #5
RE: PageSpeed Minification Pecentages Miscalculated
That's unfortunate, we're trying to implement the private instance specifically for our intranet pages.

Probably the biggest checks we're interested are the minify tasks as it's not as easy to replicate as some of the other checks with just the results from WPT. I think there's still a significant savings of minifying + gzip over just gzip alone as shown from the jquery example above (60% savings).

There's others that I think are useful, the render blocking and above-the-fold checks. It seems like there's enough data from WPT to replicate these but to be honest I don't know enough about the algorithms.


Thanks!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)