WordPress.org

Ready to get started?Download WordPress

Forums

CDN Sync Tool
Combined JS/CSS and WP Super Cache (19 posts)

  1. Djelibeybi
    Member
    Posted 2 years ago #

    Hey,

    I've enabled both CDN Sync Tool and WP Super Cache on one of my sites. All the files have been sync'd to Cloud FIles, including the cst-combined.css and cst-combined.js files. However, the WP Super Cache output still lists all the individual files instead.

    Is there something I need to do to get the system to use the combined files instead of all the individual files?

    Thanks!

    http://wordpress.org/extend/plugins/cdn-sync-tool/

  2. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    This is being worked on. There is an underlying issue with the way the JS and CSS files are combined resulting in major styling fails. I am working my way through a fix now and you can follow the progress on this at https://github.com/Olliea95/cdn-sync-tool/pull/9. The fix will be available for immediate download from that GitHub repo once it is merged - the official update will likely come tomorrow.

  3. Djelibeybi
    Member
    Posted 2 years ago #

    Hey Ollie,

    That URL gives me a 404? Would love to be able to watch/test changes. :) Or perhaps if you could point me towards the main cdn-sync-tool repo so I can watch for the merge?

    Thanks!

  4. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    Apologies, the repo has been moved. It is now located at https://github.com/fubralimited/cdn-sync-tool

    The change for the JS/CSS has been pushed to the WordPress repo so you should have plugin update 2.2 available to you through the dashboard.

  5. Djelibeybi
    Member
    Posted 2 years ago #

    Hey Ollie,

    I enabled the new plugin and the CSS worked, but the combined JS didn't work. So, I've disabled that bit. I'll monitor the GitHub repo and keep testing on my development system to track the progress of that.

    Cheers.

  6. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    Would you be able to give me some more information as to what didn't work? Is there a concatenated file with a seemingly random name (ending in .js) in your specified save path?

  7. Djelibeybi
    Member
    Posted 2 years ago #

    Yes, the JS is created fine and sync'd fine. And it's put into the output just fine. It's just that the JS itself doesn't work, i.e. my carousel animations and other theme-related stuff stopped. Unfortunately, I didn't have time to do deep debugging because the only CDN-enabled site I have is production.

    I also notice some but not all of the CSS works too, i.e. the main page looks fine, but internal pages are missing some background colour elements or something.

    I'm going to setup a test-rig next week and see if I can narrow down what the actual issue is.

  8. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    Right, it may be the minimisation (via Google Closure) that is ceasing it to work. Can I ask you check the no option for JS minimisation?

    For the CSS, are you using a readily available theme or something you've worked on yourself? Could I have a link to the website?

    Thanks.

  9. Djelibeybi
    Member
    Posted 2 years ago #

    Will try disabling the minimisation tomorrow and see how it goes.

    The theme is the Monograph theme from wpzoom.com.

  10. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    You'll have to remove the combined file from the savepath as well after trying that in order for it to generate a new one.

    After some testing around with different themes I believe it is the minimisation that is causing it not to work. I'm looking in on this and you can keep track of it here https://github.com/fubralimited/CDN-Sync-Tool/issues/15

  11. Djelibeybi
    Member
    Posted 2 years ago #

    Groovy. I'm watching that issue and will monitor the repo for fixes. In the meantime, I'll adjust the JS/CSS tomorrow and see how we go.

  12. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    I believe I have fixed the problem with JS minimisation. Updated download link.

  13. Djelibeybi
    Member
    Posted 2 years ago #

    I think that solved some of the issues, but not all -- the JS on my main page started working, even with Advanced Optimisation enabled in Closure, but the CSS was still somewhat broken once combined.

    I'm happy to setup a test site for you with the theme and plugins I'm using if you want. I have an unlimited site license to use this theme, so that's not an issue.

  14. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    I would appreciate that. Everything is working my end so it must be a theme/plugin related issue that I haven't accounted for. You can send details to me@olliearmstrong.co.uk.

    Cheers,
    Ollie

  15. Djelibeybi
    Member
    Posted 2 years ago #

    Ok, give me a few days to copy the live site across to a test VM and reset the CDN sync stuff and what-not. Shouldn't take me more than two or three days. This isn't my day job (I manage this site as a volunteer), so I'll need to find sometime after work.

  16. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    If it is too much hassle then I'll setup the site, just need the theme files. It should be within the license to be able to send them to me for the purposes of developing for you. If you could email me a zip of the theme and a list of plugins you have I'll sort everything out and debug. Thanks.

  17. Djelibeybi
    Member
    Posted 2 years ago #

    Sure, that's pretty easy. I'll send through the theme and the list of plugins from the live site tomorrow. Thanks!

  18. Ollie Armstrong
    Member
    Plugin Author

    Posted 2 years ago #

    Update to all whom are following:

    Looks like externally hosted JS/CSS files were not being concatenated but the references to them were still being removed. This has been fixed in the latest commit to the GitHub Repo. I'm awaiting feedback to confirm this but my testing has revealed this to be fixed.

    There is now an option to either include external JS/CSS or not. Including it in the concatenation now actually works as well.

    Download the latest version.

    Timeframe for the official update via WordPress is scheduled for Friday.

  19. jessefogarty
    Member
    Posted 1 year ago #

    Hey Ollie,

    Quick question receiving this error.

    Warning: filemtime() [function.filemtime]: stat failed for /home/chunky/public_html/wp-content/uploads/2011/07/CC’S-Renovation-Masonry.jpg in /home/chunky/public_html/wp-content/plugins/fubralimited-CDN-Sync-Tool-000b708/lib/Cst.php on line 319

    Warning: filemtime() [function.filemtime]: stat failed for /home/chunky/public_html/wp-content/uploads/2011/07/Leslie-Healthcare-center.jpg in /home/chunky/public_html/wp-content/plugins/fubralimited-CDN-Sync-Tool-000b708/lib/Cst.php on line 319

    Warning: filemtime() [function.filemtime]: stat failed for /home/chunky/public_html/wp-content/uploads/2011/11/BG3.png in /home/chunky/public_html/wp-content/plugins/fubralimited-CDN-Sync-Tool-000b708/lib/Cst.php on line 319

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic