Discussions

Expand all | Collapse all

Accessing jQueryUI and D3js via quickbasecdn or host within my site

  • 1.  Accessing jQueryUI and D3js via quickbasecdn or host within my site

    Top
    Contributor
    Posted 04-17-2017 21:28
    is it better to access jQueryUI and D3 via the QuickBase CDN or should I download the files from their respective sites and store them as a file in my QB server?


  • 2.  RE: Accessing jQueryUI and D3js via quickbasecdn or host within my site

    Top
    Contributor
    Posted 04-17-2017 21:46
    Just depends on what kind of version control you want to have, and how detailed the code is.

    95% of the time just referencing the CDN works well.  In some cases its even faster.


  • 3.  RE: Accessing jQueryUI and D3js via quickbasecdn or host within my site

    Top
    Contributor
    Posted 04-17-2017 21:50
    jQueryUI is already loaded on QuickBase's pages (QuickBase uses the calendar widget etc) and D3 is not in QuickBase's CDN (they don't use it).


  • 4.  RE: Accessing jQueryUI and D3js via quickbasecdn or host within my site

    Top
    Contributor
    Posted 04-17-2017 22:28
    Thanks to both Matthew and Dan, as always very helpful.

    To clarify on the D3 portion.  Is it better to host the D3 file on my site or just to call it from Cloudflare?

    Plus is there a way to access the CDN to see what is available? 


  • 5.  RE: Accessing jQueryUI and D3js via quickbasecdn or host within my site

    Top
    Contributor
    Posted 04-18-2017 02:57
    It is unclear what you mean by "my site". If you intend to use D3 within a QuickBase application I would suggest you load D3 in this manner:
    $.getScript("https://d3js.org/d3.v3.min.js";, function() {
      console.log("your code here");
    });
    If you are using D3 in an externally hosted domain do whatever you want.

    Unless you need a D3 feature from version 4 I would stick with using D3 version 3 as indicated above for usage with QuickBase.


  • 6.  RE: Accessing jQueryUI and D3js via quickbasecdn or host within my site

    Top
    Contributor
    Posted 04-18-2017 13:14
    By my site I mean QB.  Your explanation above is perfect.

    Thanks.