1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug jquery cdn link is broken in latest version

Discussion in 'Resolved Bug Reports' started by lalalatrululu, Jul 7, 2011.

  1. lalalatrululu

    lalalatrululu Member

    in performance option, i use microsoft cnd to use for jquery
    but after update i have broken link
    <script type="text/javascript" src="//ajax.microsoft.com/ajax/jquery/jquery-1.4.4.min.js"></script>
            <script type="text/javascript">if (!window.jQuery) { document.write('<scr'+'ipt type="text/javascript" src="js/jquery/jquery-1.4.4.min.js"><\/scr'+'ipt>'); }</script>
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. James

    James Well-Known Member

  4. Brogan

    Brogan XenForo Moderator Staff Member

    I didn't even notice that :oops:

    I just clicked on the link when viewing the source and it loaded the page.
  5. lalalatrululu

    lalalatrululu Member

    you can take look by yourself here
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Yes, I've just installed 1.0.2 and the http: was prepended in that version.

    I'll move this to bugs.
  7. ragtek

    ragtek Guest

    that's imho a bug:D

    $source = ($forceLocal 'local' $options->jQuerySource);
    switch (


  8. Brogan

    Brogan XenForo Moderator Staff Member

    Oddly enough it still loads fine.
    So although I don't think it was intentional and is probably a bug, no doubt Mike or Kier will confirm soon.
  9. Mike

    Mike XenForo Developer Staff Member

    It's not a bug - it means it loads it from the same protocol (http or https) as the current page. We use this in a few other places as well (the ReCAPTCHA JS embed, IIRC).
    ragtek, Floris and Brogan like this.
  10. Floris

    Floris Guest

    Thank you for looking into this Mike and for explaining it : thumbsup
  11. ragtek

    ragtek Guest

    So, if my page uses https and i link something with //example.com it will be interpreted as https://example.com and if it's http it will be http://example.com ?

    Cool, learned something new:)
  12. Brogan

    Brogan XenForo Moderator Staff Member

    Cheers Mike.

    As I could open the link and it was loading fine, I didn't think it was a bug at first but then I checked 1.0.2 and saw it was different.

    Should have gone with my first thought :D

Share This Page