Viewing 8 replies - 16 through 23 (of 23 total)
  • To clarify,

    The cdn rewrite appears correctly written in the html code, but when testing it in YSlow, you get the following message:

    This page has 11 external Javascript scripts. Try combining them into one.

    Cheers RK

    Plugin Author Frank Goossens

    (@futtta)

    Hi RK;
    Are the external JS-files that are mentioned by YSlow located on your own server (blog) and rewritten to the CDN, or are those “true” external files (e.g. Twitter, Facebook, …)?

    frank

    Hi Frank,

    WordPress Site is hosted on a VPS server with ServInt.
    Our CDN account is set up with SoftLayer using orgin-pull.

    The cPanel the folders are setup as follows:
    wp-content
    wp-includes
    images

    Our CDN Linker setup is: https://cdn.oursite.com

    With Autoptimize I’ve tried all various conbination to get the JS to work — like https://www.oursite.com https://cdn.oursite.com and more, with no luck.

    I got the JS & CSS Script Optimizer plugin working 99%, just one error with dynamic tabs.

    Tnx RK

    Plugin Author Frank Goossens

    (@futtta)

    Afraid getting all JS to work can prove a daunting task sometimes.

    Regarding CDN (which was your original question): when CDN is active and URL’s are rewritten (as seen in the HTML), what JS-files are being downloaded (as reported by Yslow)?

    Here is a copy of a page source code. I just noticed that the last link is created like this:

    https://.cdn.oursite.com

    This link appears to be written incorrectly as it contains a dot before cdn. Maybe this is what breaks the code???

    <script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-content/themes/3.3/includes/js/theme-scripts.js?ver=3.3'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.core.min.js?ver=1.9.2'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.widget.min.js?ver=1.9.2'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.position.min.js?ver=1.9.2'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.menu.min.js?ver=1.9.2'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.autocomplete.min.js?ver=1.9.2'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.mouse.min.js?ver=1.9.2'></script><script type='text/javascript' src='https://cdn.oursite.com/wp-includes/js/jquery/ui/jquery.ui.slider.min.js?ver=1.9.2'></script><script type="text/javascript" src="https://.cdn.oursite.com/wp-content/cache/autoptimize/autoptimize_2ebdf6e48d41a13cbde3d444b423f3d9.php"></script>


    [Please use the code buttons when posting code – as is your code may have been corrupted here]

    Plugin Author Frank Goossens

    (@futtta)

    Well, that dot indeed troubles me. because of it, the aggregated JS-file does not load and that may indeed very well be the reason you can’t get everything working.

    I you run Autoptimize without CDN, are all your links (for CSS, JS, images, …) on the same domain (oursite.com or blog.oursite.com) or are there already differences between those? Does everything work in that case (autoptimize without CDN)? Specifically, what is the URL for the autoptimize JS file at the end if you have CDN turned off?

    All autoptimize files without CDN are on the same domain.

    In the Head Area I have:

    <link type=”text/css” media=”all” href=”https://www.oursite.com/wp-content/cache/autoptimize/autoptimize_e4bd58a2c7f810619c9a92f061744a92.php&#8221; rel=”stylesheet” /><title> Categories</title>

    In the Footer I see:

    <script type=”text/javascript” src=”https://www.oursite.com/wp-content/cache/autoptimize/autoptimize_519e9d7e01160191d6dcfb62369695ed.php”></script&gt;

    So without CDN and checking it with YSlow – it does optimize both JS and CSS with no problems – it creates two files – one in the header and one in the footer area.

    Cheers RK

    Plugin Author Frank Goossens

    (@futtta)

    Based on this there is a problem with the URL autoptimize assigns to it’s own aggregated JS-files when using CDN. Now to make it really hard; it seems to work for some people and not for others (RK, but also the OP of this support thread).

    I will do some more testing on my test-blog to try to reproduce the problem. If I can do that (reproduce the bug), then I’m pretty sure I’ll be able to fix it. But reproducing might prove the hard part (as it does work for me). I’ll keep you guys posted on progress.

    In the mean time; I use WP Super Cache’s CDN functionality myself, works like a charm ??

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘CDN not working’ is closed to new replies.