Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #27657

Re: Google developers pagespeed insights - can't optimize css

From Joao Rodrigues <groups_jr-1@yahoo.com.br>
Newsgroups comp.lang.javascript
Subject Re: Google developers pagespeed insights - can't optimize css
Date 2015-05-15 23:12 -0300
Organization Aioe.org NNTP Server
Message-ID <mj691q$oqm$1@speranza.aioe.org> (permalink)
References <f421b972-432d-40b7-bed1-d7f496121325@googlegroups.com>

Show all headers | View raw


On 15/05/15 11:16, lazar@convexicon.com wrote:
> Hi,
>
> I'm using google developers insights to optimize my site's speed. It
> seems that no matter what I try to do with my css file, I'm always
> getting the message:
>
> "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."
>
> I tried to minify the css, then move it to the bottom of the page,

The links for external style sheets must be in the <head> tag of the 
HTML document. Apart from that, you may apply CSS to an HTML document 
using inline styles and embedded styles.

> then append the link tag dynamically on window onload.

It doesn't make sense because the window onload event fires at the end 
of the document loading process.

> Nothing worked. What should I do about it?

You may try to follow the rules defined in 'Optimize CSS Delivery':
<https://developers.google.com/speed/docs/insights/OptimizeCSSDelivery>

After that, validate your document:
<http://validator.w3.org/>

-- 
Joao Rodrigues

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Google developers pagespeed insights - can't optimize css lazar@convexicon.com - 2015-05-15 07:16 -0700
  Re: Google developers pagespeed insights - can't optimize css "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-05-15 16:55 +0200
    Re: Google developers pagespeed insights - can't optimize css lazar@convexicon.com - 2015-05-15 15:10 -0700
      Re: Google developers pagespeed insights - can't optimize css "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-05-16 00:52 +0200
  Re: Google developers pagespeed insights - can't optimize css "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-05-16 01:31 +0200
    Re: Google developers pagespeed insights - can't optimize css lazar@convexicon.com - 2015-05-15 16:49 -0700
      Re: Google developers pagespeed insights - can't optimize css "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-05-16 02:03 +0200
      Re: Google developers pagespeed insights - can't optimize css Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-16 21:32 +0000
  Re: Google developers pagespeed insights - can't optimize css Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-15 23:12 -0300
    Re: Google developers pagespeed insights - can't optimize css Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 09:59 +0200

csiph-web