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

    (@futtta)

    OK, some questions:
    * are you running a page caching plugin?
    * do you have a lot of page (or request)-specific JS?
    * did you try with JS or CSS optimization disabled to narrow down the problem?
    * do you have a URL where I can have a look?

    frank

    Sorry, have same problem (when CSS optimization enabled, everything getting slow and broke down).
    Site: silveroid.ru

    Plugin Author Frank Goossens

    (@futtta)

    when CSS optimization enabled, everything getting slow

    but only on the first request, as you’re using W3TC, no (AO isn’t active if a page is served from cache)?

    and broke down

    have a look at the FAQ and specifically the part about troubleshooting. you might have to exclude some of the CSS from optimization (also for the performance of the 1st page request).

    hope this helps,
    frank

    Hi Frank,

    I have the same problem – when CSS optimization is enabled, first page load is extremely slow (like a minute or so), but next load is quick (I use Super Cache).

    Beside of that everything works great.

    Really awesome plugin, just have to solve this issue and you’ve got my 5 stars ??

    Ondrej

    Plugin Author Frank Goossens

    (@futtta)

    try to exclude one or more CSS-files from optimization BigBelly.

    Thread Starter James Doglasse

    (@nippi9)

    i solved this by disabling cron, which is now called manually every 6 hrs. I was hitting the site with a crawler, something mad was happening causing the cron job to take ages, so with it off, problem “solved”

    I’m now tryin to exclude .css files from optimization one by one. Some of them really make loading much longer… weird ??

    Thanks Frank for this hint, you’ve got yourself a 5* ??

    I optimized some of css manually so they are no problem anymore, changed behavior of several plugins loading the same css/js/fonts and cut loading times to minimum.

    But first page load is still deadly long – appx 15 seconds. Is there any way how to make optimization process faster without excluding .css/.js files from optimization?

    Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    approx. 15 seconds means AO probably can’t reuse already cached JS or CSS from page A for page B or C, which means for every (first) request the minification (which is “costly”) has to be done again.

    have a look if you have lots of cached JS or CSS files and if so either try to identify & exclude page- (or request-)specific code or disable the aggregation of inline CSS and/or JS using the API (autoptimize_css_include_inline and autoptimize_js_include_inline filters, cfr. example code in autoptimize_helper.php_helper).

    hope this helps,
    frank

    You’re absolutely right, problem is that different pages load different set of JS/CSS files. Thanks for hint!

    What I’m trying to do now is that I create list of all CSS/JS files, that are loaded and I’d like to hard code it into header so autoptimize can make one JS and one CSS file for whole site (or main parts of it as it is quite huge website).

    Problem is that when on some page you load twice the same JS/CSS file, autoptimize aggregates it everytime and because of this minimized files are still different (see below).

    It would be awesome if while grabbing JS/CSS files from code autoptimize also checks whether these files are already included or not.

    Example:

    Page #1 loads:
    1. url-1/ABC.js
    2. url-2/XYZ.js
    3. url-1/ABC.js

    -> minified js file consists of ABC.js, then XYZ.js and then again ABC.js even though it is the same piece of code from the same file

    Page #2 loads:
    1. url-1/ABC.js
    2. url-2/XYZ.js

    So finally there are two minimized .js files that contains both the same skripts only the first one has duplicated content.

    I think that checking file URL is what would be great to prevent from minimizing the same file more times.

    What do you think – Is it possible or not?

    Plugin Author Frank Goossens

    (@futtta)

    Yeah, that might be interesting … I’ll add it to the list of candidate features for future improvements.

    If you’re into coding yourself, feel free to fork AO on GitHub and issue a pull request when you’ve got it working ??

    frank

    I’d love to help, but I’m not a programmer. I can do some small things but this is completely out of my possibilities ?? Sry…

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘cant get it to work – site running 10 times slower’ is closed to new replies.