WordPress.org

Ready to get started?Download WordPress

Forums

Autoptimize
Can this be used on a Buddypress site (23 posts)

  1. valuser
    Member
    Posted 11 months ago #

    Can this be used with buddypress.?

    http://wordpress.org/extend/plugins/autoptimize/

  2. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    Good question. In theory "yes" (Autoptimize grabs the HTML it has been created by WordPress and parses it to find CSS & JS), but this is to be confirmed by real-life tests.

    Would be great if you could try this out Valuser! If you do, I'd be willing to offer all support you might need :-)

  3. valuser
    Member
    Posted 11 months ago #

    Will do tomorrow and come back. Have also hypercache selectively active .

  4. valuser
    Member
    Posted 11 months ago #

    Only HTML . CSS appears to completely mess up the theme a child of bp default theme. Java appears to conflict with a slider that I use. On non buddy sites on same network no adverse effects. Afraid I will have to , at the moment, bow out of testing . Might come back to it but it would probably be a few months down the road.

  5. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    thanks for the feedback valuser. if you have time, it might be worth trying to exclude specific javascript (the slider) from being autoptimized while having everything else (JS) aggregated & minimized?

  6. Othello
    Member
    Posted 11 months ago #

    Same thing here: my homepage slider doesn't display when I activate the JS optimization (even though I tried to exclude a bunch of scripts)

    Could you tell me which scripts I should exclude for my website?

    Thanks!

  7. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    I'm working on my psychic powers, but until I graduate as a wizard I can't tell you what to exclude without being able to look at your site ;-)

  8. Othello
    Member
    Posted 11 months ago #

    My bad, I thought my blog was indicated in my profile. Here is my url:
    http://www.detection-du-mensonge.com

    Thanks!

  9. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    And which scripts did you already try to exclude Othello?

  10. Othello
    Member
    Posted 11 months ago #

    The following ones:

    jquery.vaccordion.js,
    vaccordion.js,
    jquery.nivo.slider.pack.js,
    nivo.slider.pack.js,
    jquery.kwicks-1.5.1.pack.js,
    kwicks-1.5.1.pack.js,
    slides.min.jquery.js,
    custom.js,
    jquery.contentcarousel.js,
    contentcarousel.js,
    jquery.mousewheel.js,
    mousewheel.js,
    jquery.prettyPhoto.js,
    prettyPhoto.js,
    jquery.tipsy.js,
    tipsy.js,
    jquery.tweet.js,
    tweet.js

  11. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    that's a lot of exclusions ;-)

    before diving into the javascript; is the CSS aggregation ok? because I don't really see a carousel, but the 4 items underneath one another and I don't see any animation?

  12. Othello
    Member
    Posted 11 months ago #

    I am not sure I understand what your are referring to, but all the CSS options are activated right now (and none the JS) and everything is displaying just fine on Firefox, Chrome and Safari :)

  13. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    in that case you can safely ignore my question ;-)

    best way forward would be to do a trial & error session, starting out with JS autoptimization active and as little excludes as possible. I was thinking:

    jquery.vaccordion.js,
    vaccordion.js,
    jquery.nivo.slider.pack.js,
    nivo.slider.pack.js,

    or maybe even only either vaccordion or nivo.slider, to begin with?

    Configure this and take a look at the page AND at the error console, which will probably complain about some javascript-problems. If you want I'm willing to have a look at your page at that point as well (but your site would be broken during that time).

    The goal is to, based on the error-messages (and your knowledge of what you're using to have the slider displayed) identify just those javascript-requests that have to be excluded.

  14. Othello
    Member
    Posted 11 months ago #

    Thanks so much, yes that would be great!
    So right now all CSS options are activated, as well as all JS options with the following scripts excluded: jquery.vaccordion.js, vaccordion.js

    As you can see, the accordion on the homepage is not displaying anymore :/

  15. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    OK, can you;

    • disable "try catch"
    • add "jquery.min.js" to the list of exclusions

    I also see that there is javascript between your closing body and closing html-tags, is that the way the theme was built?

  16. Othello
    Member
    Posted 11 months ago #

    Done! it doesn't seem to work yet though

    "javascript between your closing body and closing html-tags": sorry, I don't know the answer to this (I have very limited coding knowledge)

  17. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    OK, can you now add:

    jquery.nivo.slider.pack.js,
    nivo.slider.pack.js

    to the list of exclusions?

  18. Othello
    Member
    Posted 11 months ago #

    Done!

  19. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    last exclusion for today; custom.js.

    if that doesn't work you can disable js again for now, until I have some more time :-)

  20. Othello
    Member
    Posted 11 months ago #

    oups, didn't work either: it actually messed with my social media tabs plugin.

    I have no idea how to fix JS options :/

  21. futtta
    Member
    Plugin Author

    Posted 11 months ago #

    well, in some cases optimizing JS (with autoptimize or other plugins) just isn't possible. in that case you'll have to live with CSS and HTML optimization only.

  22. Othello
    Member
    Posted 11 months ago #

    Yes I guess you're right.. the only thing is the HTML optimization option doesn't work either on my website (the homepage get's totally blank when the option is activated).

    About JS: I am just surprised that websites like GT metrix suggest I combine scripts to optimize my blog's performance

  23. mbrsolution
    Member
    Posted 11 months ago #

    Hello @Othello, GTmetrix will always suggest to combine jscritps and css as it makes the website load faster and perform better. However in your case it is very challenging to implement because of your theme, plugins and what ever you have set up on your website.

    Like @futtta mentioned, see below applies in your situation.

    well, in some cases optimizing JS (with autoptimize or other plugins) just isn't possible. in that case you'll have to live with CSS and HTML optimization only.

    Remember there are millions of variations on the internet, it is extremely challenging to cater for all. Unfortunately your case is one of them. But you can always keep trying other methods as long as the end results satisfies your needs.

    Kind and warm regards

Reply

You must log in to post.

About this Plugin

About this Topic

Tags