The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> pagespeed concern
JimiB
post Feb 3 2016, 05:56 AM
Post #1


Member
***

Group: Members
Posts: 49
Joined: 23-January 15
Member No.: 22,076



Using https://developers.google.com/speed/pagespeed/insights/ to check on my pages i get this.....
Consider Fixing:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 1 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.
Optimize CSS Delivery of the following:

http://www.mysite.ie/style.css


Now, please correct me if i am wrong but, isnt style.css intentionally a render blocking file?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 3 2016, 10:11 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



You mean that an external CSS file always is "render-blocking"? Yes, I think so if it's intended for screen. Oh my, google optimization makes things so complicated. They recommend the opposite to what we usually recommend here, inline CSS and whatnot.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Feb 3 2016, 11:44 AM
Post #3


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



Try by reading:
https://varvy.com/pagespeed/render-blocking.html
https://varvy.com/pagespeed/render-blocking-css.html
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 3 2016, 01:49 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(JimiB @ Feb 3 2016, 11:56 AM) *

Optimize CSS Delivery of the following:

http://www.mysite.ie/style.css[/b]

That file doesn't exist.

FWIW, http://www.mysite.ie/ doesn't link to any external stylesheets either.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 3 2016, 01:50 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Feb 3 2016, 04:11 PM) *

google optimization makes things so complicated. They recommend the opposite to what we usually recommend here, inline CSS and whatnot.

I wouldn't say that. smile.gif We recommend avoiding lots of javascript libraries and bloated HTML/CSS templates, which makes the issue moot, since the loading time of a lean page will be almost instantaneous.

To me, Google's advice is just an ad hoc solution for sites using bloated script libraries and HTML/CSS templates.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 3 2016, 03:41 PM
Post #6


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



We recommend external style sheets, don't we?

Regarding libraries, if google doesn't like them, maybe they shouldn't provide them.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 3 2016, 04:56 PM
Post #7


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Feb 3 2016, 09:41 PM) *

We recommend external style sheets, don't we?

Yes, but not lots of very large ones.

QUOTE
Regarding libraries, if google doesn't like them, maybe they shouldn't provide them.

Google likes its own libraries, it's the rest of the web that must adapt. tongue.gif

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JimiB
post Feb 4 2016, 10:07 AM
Post #8


Member
***

Group: Members
Posts: 49
Joined: 23-January 15
Member No.: 22,076



QUOTE(Christian J @ Feb 3 2016, 06:49 PM) *

QUOTE(JimiB @ Feb 3 2016, 11:56 AM) *

Optimize CSS Delivery of the following:

http://www.mysite.ie/style.css[/b]

That file doesn't exist.

FWIW, http://www.mysite.ie/ doesn't link to any external stylesheets either.

That specific file doesn't exist as "mysite.ie" is not my domain and was just provided as an example.
I am unsure if i am allowed to provide my actual sites link on here as most forums frown upon it as "spam linking".
(have already been ip blocked from a forum on that same issue)


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 4 2016, 04:41 PM
Post #9


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(JimiB @ Feb 4 2016, 04:07 PM) *

I am unsure if i am allowed to provide my actual sites link on here as most forums frown upon it as "spam linking".
(have already been ip blocked from a forum on that same issue)

Relevant links is usually OK (unless the post is considered spam by a moderator, of course).
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JimiB
post Feb 4 2016, 04:53 PM
Post #10


Member
***

Group: Members
Posts: 49
Joined: 23-January 15
Member No.: 22,076



QUOTE(Christian J @ Feb 4 2016, 09:41 PM) *

QUOTE(JimiB @ Feb 4 2016, 04:07 PM) *

I am unsure if i am allowed to provide my actual sites link on here as most forums frown upon it as "spam linking".
(have already been ip blocked from a forum on that same issue)

Relevant links is usually OK (unless the post is considered spam by a moderator, of course).

Then i shall chance it.
the reason i stated mysite.ie/style.css is that i was hoping there was a simple resolve to google marking my main stylesheet as render blocking.
my domain is http:www.jimbreslin.ie
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 4 2016, 07:42 PM
Post #11


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



I see nothing wrong with that CSS file or its LINK element. The file size is about 7kB, which should load fast enough not to be a problem for neither Google nor site visitors.

QUOTE
Consider Fixing:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Your page has 1 blocking CSS resources. This causes a delay in rendering your page.
None of the above-the-fold content on your page could be rendered without waiting for the following resources to load.

While the quoted text is technically correct, it seems completely exaggerated in this case, since the delay is minimal.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 4 2016, 09:35 PM
Post #12


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



That's what I'm saying. They basically don't like external style sheets that don't use media queries.

I wouldn't care, if I were the OP. I think Google misses a point here, namely caching. A style sheet will slow down page loading, yes, but only the first time the page is visited. Next time the style sheet is typically taken from cache.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 5 2016, 06:18 AM
Post #13


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(JimiB @ Feb 3 2016, 11:56 AM) *

How high PageSpeed score did your page get? Apparently 85-100 is OK according to Google: https://developers.google.com/speed/docs/insights/about
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 5 2016, 06:19 AM
Post #14


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Feb 5 2016, 03:35 AM) *

They basically don't like external style sheets that don't use media queries.

Seems it depends on the CSS file size:
"if the CSS file is large, completely inlining the CSS may cause PageSpeed Insights to warn that the above-the-fold portion of your page is too large via Prioritize Visible Content. In the case of a large CSS file, you will need to identify and inline the CSS necessary for rendering the above-the-fold content and defer loading the remaining styles until after the above-the-fold content."
https://developers.google.com/speed/docs/in...mizeCSSDelivery

There's also difference between using a single CSS file of moderate size, and using dozens of large ones.

QUOTE
I think Google misses a point here, namely caching. A style sheet will slow down page loading, yes, but only the first time the page is visited. Next time the style sheet is typically taken from cache.

They do have a point if visitors get tired of waiting for a slow page to load even the first time.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 5 2016, 06:43 AM
Post #15


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Does that happen often to you? I don't see them saying anything about the size of the OPs style sheet.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 5 2016, 07:27 AM
Post #16


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Feb 5 2016, 12:43 PM) *

Does that happen often to you?

What happen? unsure.gif

QUOTE
I don't see them saying anything about the size of the OPs style sheet.

No I meant that they don't like any large stylesheets, neither external nor embedded, unless the stylesheet loading is deferred to after the above-the-fold content. To defer loading of a stylesheet they suggest creating the LINK element with javascript (awful complexity IMHO), while if the stylesheet is small they suggest embedding it.

(BTW, note that the quoted page does not recommend inline STYLE attributes.)
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 5 2016, 07:33 AM
Post #17


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



OT: pandy, I see that you signature has changed. Is the sling removed now? smile.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 5 2016, 10:11 AM
Post #18


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



If the large style sheet is small? tongue.gif

As said, my impression is that they complain about all external style sheets that don't use media queries. Maybe I'm wrong.

QUOTE
What happen? unsure.gif

That you have to wait for a page to load because of the style sheet.

QUOTE
OT: pandy, I see that you signature has changed. Is the sling removed now? smile.gif

Yes. Thanks for asking. It's been off about a month but I'm not allowed to lift more than a kilogram. Healing has gone well and is probably considered completed after the next x-ray in a couple of weeks. Alas rehab is slow and the doctor said I shouldn't expect full recovery. Not because of the injury but because they let me wear the plaster for too long, almost double the recommended time. Reason: they were a little behind in their schedule... I didn't know about the critical time, I was just to wait to be summoned, or I would have gone somewhere else to get the darn thing off. So the elbow stiffened more than necessary. I can straighten the arm almost all the way out now, but that was the easy part. Bending it is worse. Can't wash my face with two hands and need to use an sponge when washing, can't reach the other armpit without it. Needless to say I'm not too thrilled over having a not fully usable arm because of their negligence. Not to speak of that I don't exactly enjoy the about 2½ hours a day I put into trying to force the arm to bend. Nothing to do but to keep trying and I will have to do that for a long time. ninja.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Feb 5 2016, 10:26 AM
Post #19


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Feb 5 2016, 04:11 PM) *

QUOTE
What happen? unsure.gif

That you have to wait for a page to load because of the style sheet.

I don't know. Usually there's a lot of other external files (javascripts, images, etc) on a slow page too. I find it hard to believe a single CSS file would cause much of a delay, unless the file is huge.

QUOTE
they let me wear the plaster for too long, almost double the recommended time. Reason: they were a little behind in their schedule...

Doctors... glare.gif

QUOTE
Nothing to do but to keep trying and I will have to do that for a long time. ninja.gif

That's the spirit, exercise can do wonders. At least when you don't hurt yourself while exercising, like I use to do. wacko.gif

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Feb 5 2016, 10:46 AM
Post #20


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



QUOTE(Christian J @ Feb 5 2016, 04:26 PM) *

I don't know. Usually there's a lot of other external files (javascripts, images, etc) on a slow page too. I find it hard to believe a single CSS file would cause much of a delay, unless the file is huge.

Exactly.

QUOTE
Doctors... glare.gif

The doctors (I've met 5 now and about as many physiotherapists...) were actually good. This is some sloppy secratary's or nurse's fault, a nitwit that couldn't keep track of things. dry.gif

QUOTE
That's the spirit, exercise can do wonders. At least when you don't hurt yourself while exercising, like I use to do. wacko.gif

I've also begun to enjoy exercise. Not this kind though.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 02:13 PM