Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2015-04-10 14:01:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,273
Website GitHub

Re: Pagespeed and render-blocking CSS

philwareham wrote #289872:

in latest Photoshop (CC 2015) the 55 quality is perfectly good enough

And for those paupers like me who use Photoshop twice a year and thus still have real installable software (CS5) as it’s good enough…do you know if they’ve changed the filters in recent versions? e.g. 55% in CC2015 is equivalent to, like, 75% in CS5 or something? Or has 55% always been acceptable and I’ve been over-saving all these years?

Must admit I tend to use Save For Web set two or three notches from the top and never really noticed much degradation. But my images aren’t exactly world class anyway so it doesn’t really matter to me.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#26 2015-04-10 14:02:18

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Pagespeed and render-blocking CSS

monkeyninja wrote #289881:

Out of interest how do you deal with delivering user uploaded images? We often have to resize images uploaded by users on the server (currently using GD but I’m pushing the use of ImageMagick as it seems to be faster and more capable). 55% quality is often poor when resized this way so we’ve had to up the quality to ~85%.

That is a problem, for sure. The artefact quality produced by GD and ImageMagick is quite horrific. I used 75 as a base on client sites in the past but luckily on my own site I can control the image quality myself. There may be something in using retina images with lower compression, as detailed by The Filament Group – I’ve not done a client site using that method yet but I’m keen to try it out.

Offline

#27 2015-04-10 14:08:47

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Pagespeed and render-blocking CSS

Bloke wrote #289883:

do you know if they’ve changed the filters in recent versions? e.g. 55% in cc2015 is equivalent to, like, 75% in CS5 or something? Or has 55% always been acceptable and I’ve been over-saving all these years?

It seems to have improved in quality recently, but I’m not really sure. As I say, I used to routinely use 75 quality setting in PS but after getting bad scores on WebPagetest I followed their recommendation of an A grade being within 10% of 50% (which means 55% in truth), and it seems to look fine.

Offline

#28 2015-04-10 14:23:27

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Pagespeed and render-blocking CSS

maniqui wrote #289871:

Does it really affect performance severely, even if loaded at the very bottom?

If you load analytics asynchronously after everything else, hell no; how could it. The default setup includes loading a lightweight 16 kB JavaScript file (ga.js which doesn’t run anything crazy on its own), does a cross-domain request using an image when the actual tracking action is initialized, and ends up creating few small cookies.

Performance-wise it doesn’t affect your users’ experience. Altho, the requests may take a while to complete but that doesn’t matter if the request is asynchronous.

Offline

#29 2015-04-10 14:23:34

monkeyninja
Plugin Author
From: Sheffield, UK
Registered: 2008-10-14
Posts: 239
Website

Re: Pagespeed and render-blocking CSS

philwareham wrote #289884:

That is a problem, for sure. The artefact quality produced by GD and ImageMagick is quite horrific. I used 75 as a base on client sites in the past but luckily on my own site I can control the image quality myself. There may be something in using retina images with lower compression, as detailed by The Filament Group – I’ve not done a client site using that method yet but I’m keen to try it out.

Images have to be one of the biggest problems for web performance these days more so than any other assets. It is hard to avoid the web performance hit generated by poorly optimised images being uploaded by a user on many sites.

Offline

#30 2015-04-10 15:02:39

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Pagespeed and render-blocking CSS

monkeyninja wrote #289880:

The result of politicians meddling with things they don’t get (again)!

They should just outlaw this ‘internet’ thing, if you ask me. I’ve heard it’s infested with horrible things and influences violent behavior in our innocent children!

Offline

#31 2015-04-10 15:10:22

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Pagespeed and render-blocking CSS

Lots of interesting pagespeed tools here. Are you all Base64-ing your above-fold images?


BB6 Band My band
Gud One My blog

Offline

#32 2015-04-10 15:32:02

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: Pagespeed and render-blocking CSS

About images compression, this post is interesting as it shows that high compression level can allow you to save larger images which can also work with retina display.

Last edited by NicolasGraph (2015-04-10 16:55:24)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#33 2015-04-10 15:39:53

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Pagespeed and render-blocking CSS

zero wrote #289890:

Are you all Base64-ing your above-fold images?

No, we are not. Not now, not ever hopefully. For exactly the same reasons we are not inlining our above-the-fold CSS – it’s of dubious benefit and takes a lot of legwork to achieve. I’m fairly happy with a 233ms page load time without those 2 techniques…

WebPagetest results

Pingdom Tools results

The 4 points dropped are because of CloudFlare’s cookie. If I turn off CloudFlare I get 100 score but a 50% slower page render, so I’m willing to take the shame of a non-perfect score.

Bear in mind that if you do inline above the fold CSS on one page, chances are you’ll have to inline some entirely different CSS on the next page of your site, and the next, etc. That is unless your above the fold content is identical across your whole site, which I doubt.

Offline

#34 2015-04-10 15:56:10

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Pagespeed and render-blocking CSS

Thanks for the feedback, Phil. On the pagespeed page Design Hive comes out almost as fast as the Pagespeed site and you have a big image above the fold. And I see what you mean about inline CSS too. Interesting subject…


BB6 Band My band
Gud One My blog

Offline

#35 2015-04-10 16:06:41

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Pagespeed and render-blocking CSS

I’m waiting for an upcoming update to mod_pagespeed (or update to ngx_pagespeed if I go over to nginx) that rewrites JPEG to WebP when using img srcset. At the moment the feature blows mod_pagespeeds mind (it only writes standard img src to WebP right now). Once I have that I can reduce the page size in Chrome/Firefox by around 200kb. Happy days!

Offline

#36 2015-04-10 16:13:16

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,138
GitHub

Re: Pagespeed and render-blocking CSS

philwareham wrote #289864:

Also, don’t use Drupal. For anything. That’s probably my first performance tip.

+1.

Offline

Board footer

Powered by FluxBB