Support » Plugin: CDN Sync Tool » [Plugin: CDN Sync Tool] Combined JS/CSS and WP Super Cache

  • Djelibeybi

    (@djelibeybi)


    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/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author Ollie Armstrong

    (@olliea95)

    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.

    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!

    Plugin Author Ollie Armstrong

    (@olliea95)

    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.

    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.

    Plugin Author Ollie Armstrong

    (@olliea95)

    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?

    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.

    Plugin Author Ollie Armstrong

    (@olliea95)

    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.

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

    The theme is the Monograph theme from wpzoom.com.

    Plugin Author Ollie Armstrong

    (@olliea95)

    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

    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.

    Plugin Author Ollie Armstrong

    (@olliea95)

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

    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.

    Plugin Author Ollie Armstrong

    (@olliea95)

    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

    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.

    Plugin Author Ollie Armstrong

    (@olliea95)

    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.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: CDN Sync Tool] Combined JS/CSS and WP Super Cache’ is closed to new replies.