• Hi there,

    I’ve just run a GTMetrix test on my site after impletmenting your plugin and initially it dropped the pagespeed dramtically however I’ve just run another and it looks like your files below are taking 30secs all up to load:
    autoptimize_c3ca11c4d62be46b8805ce26c9ef8528.css
    – and –
    autoptimize_c5a8fc7630afe0db11c8f55aff2ed601.js

    How can I optimise these to load faster?

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Frank Goossens

    (@futtta)

    those are not my files, they are your optimized JS/ CSS files DeeperLook. how big are those? are they compressed by your webserver? can you share your URL?

    frank

    Thread Starter DeeperLook

    (@deeperlook)

    Hi Frank,

    They only appear to load at that length on the site’s first visit after I save and flush the cache in your settings. However, they are extremely reduced after that. Is that normal?

    Plugin Author Frank Goossens

    (@futtta)

    it’s normal in that sense that it will always be slower with an empty cache, but 30s is a lot.

    if you want to bring that initial number down, you could do one (or more) of the following things;
    * not aggregate inline JS/ CSS
    * exclude some of the (bigger) JS/ CSS from optimization
    * on a theme or plugin level: pre-minify some of the JS/ CSS and renaming those files to xyz.min.js or abc-min.css (the “min.” tells AO not to try to minify those)

    frank

    Thread Starter DeeperLook

    (@deeperlook)

    Thanks Frank,

    I’m having another issue that I’ve just noticed. I’m using GravityForms and they have all been removed from my website after activiting your plugin and using the following settings:

    – CHECK Optimize HTML Code?
    – CHECK Keep HTML comments?
    – CHECK Optimize JavaScript Code?
    – UNCHECK Force JavaScript in <head>?
    – CHECK Optimize CSS Code?
    – CHECK Also aggregate inline CSS?
    – CHECK Save aggregated script/css as static files?

    Can this be fixed?

    Plugin Author Frank Goossens

    (@futtta)

    Can this be fixed?

    absolutely, this is 99,31459% certain to be a problem with JS optimization, which can be troubleshot (or is it troubleshooted?) by looking at your browser’s error console and excluding one or more JS-files from optimization (although forcing JS into head and/or aggregate inline JS may help as well). have a look at the FAQ for more info on how to troubleshoot.

    Thread Starter DeeperLook

    (@deeperlook)

    Forcing the JS into the header seemed to work, however, is that not poor practice?

    Plugin Author Frank Goossens

    (@futtta)

    Forcing the JS into the header seemed to work, however, is that not poor practice?

    well, it indeed is better to have JS in footer (and deferred), yes, but sometimes forcing in head is needed have a functional site. the alternative would be:

    looking at your browser’s error console and excluding one or more JS-files from optimization (although forcing JS into head and/or aggregate inline JS may help as well). have a look at the FAQ for more info on how to troubleshoot.

    frank

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Autoptimize Javascript and CSS files taking 30 secs to get.’ is closed to new replies.