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

Lack of Interest Please add new jQuery Source - cdnjs.com

Discussion in 'Closed Suggestions' started by RoldanLT, Jul 7, 2014.

  1. RoldanLT

    RoldanLT Well-Known Member

    Please add cdnjs.com as option.

    I find cdnjs.com host a lot of known js and css file, like fontawesome ;)
  2. RoldanLT

    RoldanLT Well-Known Member

    By the way, How can I force my jquery.js loaded from cdnjs.com?
  3. RoldanLT

    RoldanLT Well-Known Member

    @Mike @Brogan ?
  4. Chris D

    Chris D XenForo Developer Staff Member

    It's just a template edit:


    <script src="{$jQuerySource}"></script>
    Replace with:
    <script src="CDNJS.com URL Here"></script>
    Brogan likes this.
  5. RoldanLT

    RoldanLT Well-Known Member

    I only see this //cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js , Is it compatible with XenForo Already?
  6. Chris D

    Chris D XenForo Developer Staff Member

    Nope. Highly unlikely.

    You would need 1.11.1 to ensure compatibility with XenForo and its add-ons.
  7. Chris D

    Chris D XenForo Developer Staff Member

    I've looked into cdnjs... It doesn't really seem like a good idea implementing it in the core.

    It doesn't have all versions, if it ever had some of the jQuery versions XenForo has required over the years, not all of them are there now which leads me to believe they only host a subset of the most recent versions of things. I can see comments from people saying even current stuff like bootstrap is out of date.

    Seems like a good concept for a service for a company to provide, but very poorly implemented.

    Besides, if all they do is host the JS file on CloudFlare, couldn't you just use CloudFlare?
    RoldanLT likes this.
  8. RoldanLT

    RoldanLT Well-Known Member

    Ok, I will forget cdnjs :)

Share This Page