0

I ran my site through Google PageSpeed Insights and got the following message:

Optimize CSS delivery of the following:

First it lists two CSS files I don't recognize in /sites/default/files

Second, it lists my font awesome css which I'm LINKING to from my .libraries.yml file, like so:

font-awesome:
  remote: https://fortawesome.github.io/Font-Awesome/
  version: 4.5.0
  license:
    name: MIT
    url: https://fortawesome.github.io/Font-Awesome/license/
    gpl-compatible: true
  css:
    theme:
      https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-
awesome.min.css: { type: external, minified: true }
    bootstrap/assets/javascripts/bootstrap/transition.js: {}

So my question then is two-fold:

Short of using another module such as Addvagg

1) How can I speed up delivery of the font awesome css?

2) What are those other CSS files and how can I speed up delivery of them?

1 Answer 1

-1
  1. download the font & css files, don't use a cdn
  2. minify and concat your css, additionally you can use sass & gulp to do the job for you
4
  • 1
    Could you explain how these actions will help? Drupal already concats and minifies (aggregates) CSS so using gulp for the same thing seems redundant doesn't it? Also serving content from a CDN means the user may already have the file in cache and not need to download it, helps to reduce the number of simultaneous requests the browser has to make to the website domain, and typically does so without cookie/session overhead, thus improving page load times and server load. Why would manually hosting and serving files that can be statically served from a CDN yield an improvement?
    – Clive
    Apr 24, 2017 at 15:10
  • It could be that the cdn is slowing your site down.
    – kevinius
    Apr 24, 2017 at 17:25
  • Or it could just as easily be speeding it up...
    – Clive
    Apr 24, 2017 at 17:39
  • you will have to investigate....
    – kevinius
    Apr 24, 2017 at 17:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.